Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Jan 2010 12:32
hi!
How can I throw a ball in the direction the camera is facing using dark physx
The camera is controlled with the mouse, the code I took from another part codebase!




Thanks for any help, i am totally new to dark physx

Hail to the king, baby!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Jan 2010 15:05 Edited at: 25th Jan 2010 15:05
Welcome to Dark PhysX, see if this thread helps show a few ways plus there a link to something else.

http://forum.thegamecreators.com/?m=forum_view&t=90357&b=30

Dark Physics makes any hot drink go cold.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Jan 2010 15:38
thanks for that,but i cant quite incorprate it into what i have atm!! seems it relies on something move.. but i wanna just stand there and chuck em aswell!

Hail to the king, baby!
paul5147
18
Years of Service
User Offline
Joined: 11th Jan 2006
Location: Hot & Sunny
Posted: 25th Jan 2010 20:13
Try the local force commands
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Jan 2010 20:47
hey thnks paul5147, but why does it drop straight down when changing the spheres size to 5! I just dont understand these commands

Hail to the king, baby!
paul5147
18
Years of Service
User Offline
Joined: 11th Jan 2006
Location: Hot & Sunny
Posted: 26th Jan 2010 08:53
changing the spheres size means you have also changed its weight so it needs more force adding to move it,look up the rigid bodies properties commands and either change the objects mass or just add more force (phy add rigid body local force shot,0,0,force in the z direction,0,0,1,1)
paul5147
18
Years of Service
User Offline
Joined: 11th Jan 2006
Location: Hot & Sunny
Posted: 29th Jan 2010 15:19
Another code snippet,throwing a rope.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 29th Jan 2010 20:42
good one paul5147 , like the shadow trick.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-03-29 12:35:17
Your offset time is: 2024-03-29 12:35:17