Game Development Community

3D Transforms and applyImpulse() stuff??

by Stephen Clark · in Torque Game Engine · 05/23/2003 (10:43 am) · 1 replies

Ok, so some of you may have seen my post on getting my object to spit out other objects, which I now have working (thanks to yall) but now I need to spit them out in a around a random Y (up) axis (so they distribute randomly around the object from whence they came). I've seen some code in the parents object OnThrow and I've tried to use it but to no avail. Could someone point me to a tutorial or a good code snippet that illustrates appling impulses and/or transforms?

gracias,

-s

#1
05/23/2003 (11:50 am)
Check out this link, it has an example of the random function being used for generating 3D coordinates.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1714