Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OsciallateEntity(Entity entity, Vector3 position, float angleFreq, float dampRatio)
- {
- entity.ApplyForce(((position - entity.Position) x (angleFreq x angleFreq)) -
- (2 x angleFreq x dampRatio x entity.Velocity) + new Vector3(0, 0, 0.1f));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement