Gravity/Kinematic issue within a gaming enviroment

Jan 16, 2013 at 4:53am

Gravity/Kinematic issue within a gaming enviroment

Hey,

I am having a problem with figuring out a way for key press to move my bowling ball into the pins. When I press the forward key the ball moves towards the pins but since I have kinematic 1 on the pins wont move this is working as designed but how would I fix this? I am currently using gravity to move the ball forward and if I take kinematic off the pins will move foward with the forward key press.

I know I can use the picker to throw the ball but this is not what I am looking to do. If you know of a solution to my problem pleaase respond.

Thanks

– Pasted Max Patch, click to expand. –
#66095
Jan 16, 2013 at 5:44am

instead of changing the gravity, send the message “impulse 0 0 -20″ to the bowling ball phys.body.
adjust that value for magnitude and direction for your needs.

#237959
Jan 16, 2013 at 6:08am

Thanks very much that worked perfectly, muchly appreciated.

Its only a start so will get better.

#237960

You must be logged in to reply to this topic.