Create a free forum in seconds.
zIFBoards - Free Forum Hosting
Welcome to Game Maker Forum. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:

Welcome to Wolf Dreamer's Forum. The worlds first electronic mental asylum.

The dream must come to fullfillment. I believe the correct path finally lies before me. Help me, join me, together we will become strong enough to slay anything that stands in our way, and we will emerge from this great struggle victorious at long last!

So come on in and enjoy. And never hesitate to post. Everyone here is really nice and as helpful as they can be. Please don't hesitate to join us. We do not tolerate any snobs or jerks, so we're totally newbie friendly and randomness is encouraged.

And please remember to take the poll to see what type of people dwell here.

We are not here to discourage your dreams, just to point you in the right direction, a map on all the difficult areas to cross on their way to the finished goal. Journey with us, and rise to embrace your destiny!  Game Maker Forum->3D game design->MACARRAUM Irrlicht/Game Maker interface thing
 

 New code for GMtokamak
vicious1988(AKA. UT)
Posted: Oct 18 2006, 09:43 AM


Likes: Weapons, War, Killing, and fluffy bunnies.
Group Icon

Group: The Penguin Elite
Posts: 1072
Member No.: 20
Joined: 6-July 04



Well, it took me a while but I got my grenade physics working, mostly. The only problem is when your X rotation goes below or above 0 it messes w/ it.

Anyways, its a combination of the trig code on Bami's site and the code he supplied me with earlier. Figured I'd post it for anyone having trouble with 'nades. You can use it with any 3d engine w/o a ton of editing. The only edit you really have to do is change the the rotation for y2 to check Z rotation since most of the engines out there have Z and Y axis switched.

CODE
y2=node_getRotationY(o_device2.cam)
//here come the results:
x1 = (15*sin(degtorad(y2)))
z1 = (15*cos(degtorad(y2)))
Dy=node_getRotationX(o_device2.cam)
height = radtodeg(arccos(Dy/(sqrt(sqr(2)+sqr(Dy)))))/10



TOK_ApplyImpulse(body_id,x1,height,z1);


This post has been edited by vicious1988(AKA. UT) on Oct 18 2006, 09:44 AM


--------------------
user posted image

A relationship is not an F-14 Tomcat. It doesn't cost as much, isn't as cool, and you can't kill people with it. So in situations where you'd try and save the F-14, such as an engine failure, or a funny warning light, or odd feeling, in the same situation in a relationship you should grab that yellow and black handle and pull like hell.

QUOTE
We'll cross the t's and dot the......lower case j's.


Check out Modern Warfare:
Homepage
Forums
ModDB Profile


FEAR MY 9-VOLT!
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | MACARRAUM Irrlicht/Game Maker interface thing | Next Newest »
zIFBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Sign-up for Free

Topic Options



Hosted for free by zIFBoards* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.0647 seconds · Archive
Been to the official Game Maker forum lately?

Over here we're never too busy to speak to you. So come on in, and enjoy a nice, relax, laid back community. We have penguins.