Quantcast
Channel: Answers by "mystazsea"
Viewing all articles
Browse latest Browse all 14

Answer by mystazsea

$
0
0
If you look carefully at the Drag Rigidbody Script, it has several variables that you can alter in the Property inspector after you attach it to an object( with a rigid body of course) Those Variables are - var spring - var damper - var drag - var angularDrag - var distance Var Distance is the one you most likely want..but if you play around with it you can see what each effect does..and you could add a function that rotates the object to align with the camera vector, if you want it to align with your view ..like Halflife2 or Deus Ex does.. The rest of the tweaking could be done with spring and damping 0.2; var attachToCenterOfMass = false;

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images