Pitch, Yaw, Roll align Help

Blitz3D Forums/Blitz3D Programming/Pitch, Yaw, Roll align Help

I need to align the rigidBody to the plane Normal it is over.

I have:
1)Plane normal x,y,z
2)RigidBody Pitch,Yaw,Roll

I can set the RigidBody Rotation using only Pitch,Yaw,Roll.
How to do this?
Thx :)



Use aligntovector on the y axis using the plane normals as the vector parameters.

Stevie

I can set the RigidBody Rotation using only Pitch,Yaw,Roll. :(

Well use a global helper pivot, align that rather than the rigidbody and get the entityroll, pitch and yaw from the pivot. You can then apply that to the rigid body.

yes it works, but I cannot control character Yaw anymore, since I use Yaw values from the helper pivot.
uhm..
It should retain Yaw and pitching on the surface...

Edit:Ok Found a solution, thx :)