Is it possible to add timescaling based on the linear velocity, so i can make something kinda like SuperHot
log out the value you’re setting to make sure it’s sensible (for example not zero).
@Gavin_Durbin, linearVelocity is a Vec3, that is an object.
You can’t use it as it is to calculate your value. You can calculate its length as an alternative:
this.app.timeScale = this.entity.rigidbody.linearVelocity.length() / 10 + 0.1;
1 Like