Closed MoonHJ98 closed 2 years ago
Are you getting any errors/warnings when trying to set the local pose on the shape?
This operation should work, but you need to be aware that it is only legal to call if (a) the shape is an exclusive shape or (b) it is a shared shape that is not attached to any actors.
I want to change the local position of a shape in Phsyx.
Even if the setLocalposition() function of the shape is called, the position of the shape does not change.
The setLocalposition() function seems to change the value in the connected actor (rigidbody), but even if the shape's getActor() function is called, NULL is returned.
In PxShape.h, NULL is returned if shape is not exclusive, but I don't know what this "exclusive" means. Can you tell me what to do?
Here is my code for changing local position for shape
this is my code for create collider
and this is for attach shape to rigidbody