|
Post by TinSoldier on Apr 24, 2016 6:51:55 GMT
Quaternion CarQ;
/// OBJ_0 = Car /// OBJ_22 = Gforce void Main() { // Car Orentation iObjectOrientation(OBJ_0,CarQ);
// Set Gforce orientation the same as the cars iObjectOrientationSet(OBJ_22,CarQ); }
Don't know if this has been covered before...
This simply orients a gravity object to the same as a car for instance interactively.
This would allow a car to drive upside down in a tunnel or tube, any surface angle and the car never falls off.
To use this for multiple objects / vehicles, you would need a separate Gforce attached to each car or object, and the scrip above to align it.
To control this for certain places in your project, but not others, you could use an EventOn*****'s to turn the Gforce's on and off as needed.
|
|
|
Post by WhyNot on Apr 24, 2016 8:47:32 GMT
you can use a force or velocity instead bro!!!!!!
|
|
|
Post by TinSoldier on Apr 24, 2016 17:20:43 GMT
you can use a force or velocity instead bro!!!!!! You do realize a Gforce is just a custom force object, or visa-versa, force is a stripped down Gforce.. Velocity ?? not so sure about that, a Gforce or Force would be way better for this IMO.
|
|