Attaching camera to a joint

Blitz3D Forums/Blitz3D Beginners Area/Attaching camera to a joint

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've successfully attached the camera to the joint. Here's another question.

I want to use my mouse to move the player model on his x axis and a joint in the skeleton to move the bones (where the camera is attached) on the y axis (up/down)

Here is my code
rot_point = FindChild( playermesh, "joint38" )


RotateEntity rot_point,EntityPitch(rot_point)+MouseYSpeed()/2.5,0,0 
RotateEntity player,0,EntityYaw(player)-MouseXSpeed()/2.5,0 
MoveMouse GraphicsWidth()/2,GraphicsHeight()/2 


I've managed to rotate the player perfectly but it does not move the joint the way I want to ...

Any help is appreciated!