- Home /
Non-Kinematic movement via code
Hi guys, I would like some clarification on something. If I'm setting a gameobject's position in code, but I don't have isKinematic set to true, my object moves correctly and still responds to gravity (use Gravity is ticked) so it seems to be a combination of the two systems. Will this cause issues? Thanks
Answer by diegzumillo · Nov 24, 2013 at 04:49 PM
It depends on how you're moving it. The transform.Translate() function will definitely cause problems, but changing the rigidbody.velocity directly seems to be safe. I can't tell you with 100% certainty but it's how I'm working and so far all is fine.
Sorry I can't give you a more certain response. Keep your eyes open for strange behavior when using functions like OnTriggerEnter or OnCollisionEnter etc.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122633im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to make kinematic platform trigger events 0 Answers
Can I detect a trigger message between a trigger and a kinematic rigidbody? 1 Answer
Rigidbody and Parenting - Kinematic Rigidbodies? 2 Answers
How to perform grasp action on a cloth? 3 Answers
Kinematic Rigidbody Collider not colliding with Static Trigger Collider 3 Answers