- Home /
How to keep car moving after hit kinematic prop
Hello, just like in gta, Big truck will still move after hit lamp, before hit lamp is kinematic to not fall by gravity or by player touch, after hit, kinematic is off and lamp fall but in unity there is nothink like prop system. Truck will stop before kinematic will change to off. I tried with copy relativeVelocity in oncollisionenter and it almost work but truck will stop for 0.2 second then it will start moving again. How to make it like in gta? Smoothy?
Answer by Vilhien · Jul 18, 2018 at 07:10 PM
I would think perhaps another collider set to trigger set to overlap the truck.
When the trigger enters those colliders make them not kinematic etc, it will happen before the real collision with the collider on the truck not set to trigger.
Then by the time the trucks collider hits, (which is the actual size of the truck) it will possibly react correct. Let me know how it goes!
Physics is to fast, physics will stop truck before game will make them not kinematic even if it will be called earlier with collider set to trigger.
Weird idea,
Have you tried putting don't go through things script on the truck with the layer set to the street lights etc layer?
That would keep them from going through, but also might hiccup.. Just wondering if that will even trigger the kinematic in that split second.
Game is for android, I'm doing my best to keep 60 fps, and it's not super stable. I heard that DontGoThroughThings lightly aggravating on performance
Your answer
Follow this Question
Related Questions
How to determine the axis specific speed (or velocity) of a kinematic object? 0 Answers
Kinematic rigidbodies 1 Answer
Object scale effects to speed 1 Answer
I want collision boxes to be precise without overlapping each other 1 Answer
Simple Movement Game: Physics vs Manual Collision Detection? 2 Answers