T
T
Timofey Bulgarian2017-10-11 17:49:06
C++ / C#
Timofey Bulgarian, 2017-10-11 17:49:06

How to make an add-on for Rigidbody2D?

What is the correct way to make some add-on for Rigidbody. It seems to be something like an adapter or a proxy, but knowledgeable people will correct me. I need to control the calls of some functions and perform, for example, some other additional operations at the same time. As I understand it, it would be better to do this by inheriting from Rigidbody and defining your own functions that will use the Rigidbody functions, but I didn’t succeed. Maybe you know how else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2017-10-11
@Arhin

Are you calling these functions yourself? Then call your own)) You can also inherit, but it will no longer be Rigidbody2D. What didn't work? What functions need to be maintained?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question