Tokamak Physics Thread 5

Blitz3D Forums/Blitz3D Userlibs/Tokamak Physics Thread 5

Thanks for your quick reply bot builder.

I follow what your saying but I cant get something that seems simple to work.

I am trying to apply a force based on the direction the camera is faceing. I basically have a sphere that is attached to a pivot in front of the camera. When you hold down space, i want the sphere to be projected forward away from the camera. The problem is I cant seem to get the sphere to project straight away from the camera. Does this make sense?

What would you recommend?

This is my last attempt so far:

    TOKRB_ApplyImpulse2 rb(i),5,20,5,TOKRB_GetX#(rb(i))+(EntityYaw(cameraPivot) ),TOKRB_GetY#(rb(i))-0.5,TOKRB_GetZ#(rb(i))+(EntityYaw(cameraPivot))



Tried so many different numbers for the last 3 parameters, nothing affects the result.

even if i try something like :
TOKRB_ApplyImpulse2 rb(i),5,20,5,50,50,50

or
    TOKRB_ApplyImpulse2 rb(i),5,20,5,TOKRB_GetX#(rb(i))+20, TOKRB_GetY#(rb(i))-0.5,TOKRB_GetZ#(rb(i))+20


I get the same result, no influence from the direction I want the force applied from.