playMaker

Author Topic: Making a Game Object non-moveable and back[SOLVED]  (Read 814 times)

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Making a Game Object non-moveable and back[SOLVED]
« on: April 02, 2020, 01:18:48 AM »
Hi, all!
In my game, I want a car to be non-moveable when the engine is turned off and to return to normal when the engine is switched on.
How can I achieve that? Editing a component, I supppose; but which one?
Thanks in advance.
« Last Edit: April 09, 2020, 03:45:23 AM by jeanfabre »

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Re: Making a Game Object non-moveable and back
« Reply #1 on: April 02, 2020, 01:02:27 PM »
Is this question really stupid ?
« Last Edit: April 02, 2020, 01:04:37 PM by TVISARL »

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Making a Game Object non-moveable and back
« Reply #2 on: April 02, 2020, 01:54:11 PM »
Why or how it is moving in the first place? What do you mean by non-movable?

You can set velocity to 0. Or you can switch simulation off on the rigidbody, or change the bodytype to kinemtic etc.

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Re: Making a Game Object non-moveable and back
« Reply #3 on: April 03, 2020, 01:02:30 PM »
Many thanks, Thore. The Is Kinematic property is the answer.