given my luck on getting answers for this sort of stuff on previous forums this is a long shot.
Can someone please whip me up a brief piece of code using apply force or any other method that would make entity "E" propel itself forward in its local forward direction as such a way as thrusters would.
the code doesnt have to be perfect just in black in white. I will add triggers and other variables to it myself.
You haven't been getting help because you need to post this sort of stuff in the [URL="https://facepunch.com/forumdisplay.php?f=65"]Developer Discussion[/URL] sub-forum.
[QUOTE=CDU/flappy;52547223]given my luck on getting answers for this sort of stuff on previous forums this is a long shot.
Can someone please whip me up a brief piece of code using apply force or any other method that would make entity "E" propel itself forward in its local forward direction as such a way as thrusters would.
the code doesnt have to be perfect just in black in white. I will add triggers and other variables to it myself.[/QUOTE]
[code]
E:applyForce( E:forward() * E:mass() * SomeMultiplier )
or
E:applyForce( E:toWorldAxis( vec( fw, rg, up ) ) )
[/code]
[QUOTE=unrezt;52547439][code]
E:applyForce( E:forward() * E:mass() * SomeMultiplier )
or
E:applyForce( E:toWorldAxis( vec( fw, rg, up ) ) )
[/code][/QUOTE]
Cheers! your help is much appreciated although i could of sworn i tried similar codes to no avail.
Sorry, you need to Log In to post a reply to this thread.