playMaker

Author Topic: Align object to surface help  (Read 1458 times)

Tyrus

  • Playmaker Newbie
  • *
  • Posts: 5
Align object to surface help
« on: November 07, 2014, 09:35:19 AM »
Hi,

I have some problems getting a character to align to the surface he is moving on.
It is fully controlled by FSMs. No character controller attached or rigid body attached.

I use a raycast to get the collision normal but have problems to get correct rotation data out of it. Any tips on how to get it done in playmaker?

Thanks in advance

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Align object to surface help
« Reply #1 on: November 27, 2014, 01:18:27 AM »
Hi,

I don't think you should expect rotation data out of your raycast, or do you mean that you fire the raycast at an angle and want to know the direction of the raycast as well as the normal at the point?

 Bye,

 Jean