Difference between revisions of "ApplyHavokImpulse - ObjectReference"

imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
 
imported>Evernewjoy
Line 24: Line 24:
; Apply a physical force along the x axis with a magnitude of 5 to a cheese wheel
; Apply a physical force along the x axis with a magnitude of 5 to a cheese wheel
CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0)
CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0)
</source>
To get a heavy object like a weapon to go flying as if hit with a very large force you must use a magnitude such as 10,000:
<source lang="papyrus">
;sends testaxe, a heavy object, flying across room
;along the positive y-axis
testAxe.ApplyHavokImpulse(0,1,0,10000)
</source>
</source>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
Anonymous user