Closed brunnolou closed 3 years ago
This PR adds the following methods to Hinge constraint:
enableMotor: () => void
disableMotor: () => void
setMotorSpeed: (value: number) => void
setMotorMaxForce: (value: number) => void
It also adds a Demo showing off a practical example.
https://user-images.githubusercontent.com/2729225/115790503-b9b9b000-a3be-11eb-83f2-b243b8802219.mp4
It allows rotations to simulate many things like vehicles, robots, etc, by taking into account the motor force.
HingeConstraintApi
hinge
Closes #176
What
This PR adds the following methods to Hinge constraint:
enableMotor: () => void
disableMotor: () => void
setMotorSpeed: (value: number) => void
setMotorMaxForce: (value: number) => void
It also adds a Demo showing off a practical example.
https://user-images.githubusercontent.com/2729225/115790503-b9b9b000-a3be-11eb-83f2-b243b8802219.mp4
Why
It allows rotations to simulate many things like vehicles, robots, etc, by taking into account the motor force.
How
HingeConstraintApi
and use it when constraint type ishinge
Closes #176