Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: SawyerK on January 28, 2023, 02:27:44 PM

Title: isKinematic Gameobject slowly moving
Post by: SawyerK on January 28, 2023, 02:27:44 PM
Hi!

I'm trying to create a physics lock system for my trucking game. I made an fsm that triggers, waits, then locks and parents the item to the bed of the truck.
This works fine except the item that has the isKinematic checked and useGravity unchecked still slowly moving downwards pushing the truck into the ground making it impossible to drive.
What could be the problem here?
Thank you!
(https://i.postimg.cc/Kj4RG0Ln/iskinematic.jpg)
Title: Re: isKinematic Gameobject slowly moving
Post by: djaydino on January 29, 2023, 01:50:52 AM
Hi.
Maybe try adjusting the mass.
also after setting gravity 0 try Set velocity 0,0,0 (not every frame)
Title: Re: isKinematic Gameobject slowly moving
Post by: SawyerK on January 30, 2023, 02:12:37 PM
Thank you for the reply.
I can't adjust the mass because it wouldn't fit the different kind of items (some items really heavy 1500 some really light 2)
I did add set velocity 0,0,0 and set angular velocity 0,0,0. Setting velocity before or after gravity 0 didn't make a difference.
Title: Re: isKinematic Gameobject slowly moving
Post by: djaydino on January 31, 2023, 02:17:32 AM
Hi.
Is the the collision detection on the truck (on Rigidbodies) set to Continuous?