Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Handrews on March 04, 2020, 03:31:08 PM

Title: Translate to a direction
Post by: Handrews on March 04, 2020, 03:31:08 PM
Hi!

I need that an object translates in the same direction the camera is looking.

How i get the direction to use it in Vector3 of Translate Action?

Ty
Title: Re: Translate to a direction
Post by: djaydino on March 05, 2020, 04:43:13 AM
Hi.
Maybe 'Get Rotation' From Camera, then 'Set Rotation' to object and translate forward direction (set Space to self)
Title: Re: Translate to a direction
Post by: Handrews on March 05, 2020, 11:52:45 AM
Yep it worked...but i thought there would be a way to do it without rotate the object.
Title: Re: Translate to a direction
Post by: djaydino on March 06, 2020, 01:14:13 AM
Hi.
Maybe attach the object to the camera and move the camera,
can you give some more details as it kind of depends on your setup