|
:D Im trying to make a rigidbody 'Jump' but only when he is on the floor. obviously you cant jump when you are alredy jumping ^.^. thats what exactly do my rigidboy! it "jump" when its alredy "jumping". Any idea? :P Thanks!
(comments are locked)
|
|
May be checking if is not touching your "thing" tagged ass floor?... Send me a msg if it works... i didnt test it, and for bugs or that o:... Salute. edit: try with OnTriggerExit and with OnTriggerEnter... dont know what of them may work better...
THanks it worked perfectly! :D
Feb 23 '11 at 12:21 AM
SosaZero
How would I do this, if there are other ways for the rigidbody to become not touching the floor, for example falling off of something?
Feb 15 at 09:52 PM
varesa
(comments are locked)
|
|
function Update() { var controller : CharacterController = GetComponent(CharacterController); if (controller.isGrounded) { Much easier and works fine. Assumes you have the Charactercontroller script on your character of course. Thanks for the answer! was useful too but im not using Character Controller, im using my own script! THanks!
Feb 23 '11 at 12:22 AM
SosaZero
(comments are locked)
|
