|
hi, i need help with my game, i got this problem when my character dash forward it pass thru to any objects with collider on it but when im not dashing and just walking around it works fine and im not passing thru to any object (hope u get what i mean with this, im not english guy). Here's my script
(comments are locked)
|
|
If you're using CharacterController, then you should be using Move() or SimpleMove() to move, not translating the transform. You may need to increase the Skin Width of the controller too. ok ill try that, i think i saw that somewhere in script reference, tnx ^_^
Jun 21 '11 at 01:38 PM
reignier
(comments are locked)
|
|
i have solve the problem, this should be fine, tnx for the help warwick alison! this script also works perfectly with third person controller script or just create new javascript and attach this. ^_^
(comments are locked)
|
|
It is because you force the Rigidbody to not take physics into account when you use Translate. If you want to add extra force in some direction try using AddForce() instead. i attach this with character controller, i cant add with rigidbody with it
Jun 21 '11 at 05:48 AM
reignier
I see, have you considered making it a rigidbody instead? From my experience the movement is much better done with physics. Otherwise I'm not sure if this might be suitable for you, but you could in the moment of "dashing" store the object in front of the player (or cast a ray in its forward direction) and check the distance, when the distance is to small you set the isDashing to false.
Jun 21 '11 at 10:44 AM
save
(comments are locked)
|
