Pitch, Yaw, Roll align Help

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

FlagDKT(Posted 2008) [#1]
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 :)




Stevie G(Posted 2008) [#2]
Use aligntovector on the y axis using the plane normals as the vector parameters.

Stevie


FlagDKT(Posted 2008) [#3]
I can set the RigidBody Rotation using only Pitch,Yaw,Roll. :(


Stevie G(Posted 2008) [#4]
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.


FlagDKT(Posted 2008) [#5]
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 :)