I’d like to know how to make one please.
Well, you would use this.entity.rigidbody.teleport(x, y, z);
to teleport the entity. To make sure it doesn’t retain any velocity it previously had, you would use this.entity.rigidbody.linearVelocity = pc.Vec3.ZERO;
and this.entity.rigidbody.angularVelocity = pc.Vec3.ZERO;
.
1 Like