playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Register on the forums to download actions, updates, etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker News
»
General Discussion
»
Translate to a direction
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Translate to a direction (Read 1384 times)
Handrews
Playmaker Newbie
Posts: 36
3D Artist & Game Developer
Translate to a direction
«
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
Logged
djaydino
Administrator
Hero Member
Posts: 7615
Re: Translate to a direction
«
Reply #1 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)
Logged
Join the PlayMaker Discord Channel!
Handrews
Playmaker Newbie
Posts: 36
3D Artist & Game Developer
Re: Translate to a direction
«
Reply #2 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.
Logged
djaydino
Administrator
Hero Member
Posts: 7615
Re: Translate to a direction
«
Reply #3 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
Logged
Join the PlayMaker Discord Channel!
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker News
»
General Discussion
»
Translate to a direction