Hello, I am using the rigidbody system like this way:
// initialize
this.entity.addComponent('rigidbody');
this.entity.addComponent('collision', {
type: 'mesh',
model: this.entity.model.model
});
I found that when the model translate
/ rotate
(or setPosition
or setEulerAngles
directly), the rigidbody seems stand still. I need to use this.entity.rigidbody.teleport(position, eulerAngles)
to move it.
Am I doing it in correct way ?