Jump to content

Calculating angle for SetBodyForce()


Arska134
 Share

Recommended Posts

I've been programming some kind of grenade code, but problems... again...

 

I need to add force for object to right angle (where camera is pointing at. camrotation.X and camrotation.Y)

Not very good at maths, but i think it needs some "Sin" and "Cos", so... help. :rolleyes:

Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...