PlayMaker Help & Tips > PlayMaker Help
angle alignment of moving object[SOLVED]
(1/1)
Pawel:
I am trying to figure out if it is possible with Playmaker to make sure that the object is aligned to a surface angle as it moves along rather then always staying upright.
Attached is a little drawing, just to make sure I am clear...
I know it has to do with normals of the ground surface, but have no idea how to extract and apply this information to moving objects...
I's appreciate any help.
TIGGYsmalls:
You could have a Raycast firing out of the bottom of your object, that gets the normal of what it hits.
Pawel:
I've spent hours trying to do just that with no results... :)
What do I store in a variable? What kind of variable? How do I apply this variable to the moving object to correct the surface allignment?
jeanfabre:
Hi,
I made an example to do just that :
http://hutonggames.com/playmakerforum/index.php?topic=900.msg3781#msg3781
bye,
Jean
Pawel:
Jean, thank you so much for this. Your setup is awesome and it helped me a lot!
Navigation
[0] Message Index
Go to full version