Hi, all. In my project, I want to set an entity with rigidbody to a specified orientation. I use this :
In fact, I don’t want to set the position at the same time. So, if there has a function that sets orientation only, it would be better. Something like that:
You mean something like SetRotation?
Yeah, but setRotation only work when the entity has no rigidbody.
Seems like a reasonable request. I’ve added an issue to the engine: https://github.com/playcanvas/engine/issues/782
I’m curious, why do you use .clone() when assigning ballCatPos ?
In the small screenshot, there doesn’t seem to be a need. Perhaps later in the code, they use it in a way that they need a copy of the position and not change the original object.