Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Nog on July 23, 2015, 06:26:03 PM

Title: Freeze Position of Game Object
Post by: Nog on July 23, 2015, 06:26:03 PM
Is it possible to freeze the positions of a game object so that it will only move in the local Z position? I have a game object that follows the player, but I just want the game object to move forward and not side to side. I can freeze the game object in world space using the get and set position actions, but the forward axis of world space changes according to the location of the game object. Changing the get and set positions to self does nothing.
Title: Re: Freeze Position of Game Object
Post by: djaydino on July 24, 2015, 04:22:54 AM
Hi,
if you add the component "rigidbody" you can use Constraints to freeze positions and rotations,
you can set drag to 0 and disable gravity when needed
Title: Re: Freeze Position of Game Object
Post by: Nog on July 24, 2015, 05:15:58 AM
Thank you djaydino. I will give that a try.