SHARE
TWEET

Untitled

a guest Mar 14th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package arm;
  2.  
  3. import iron.math.Vec4;
  4. import iron.math.Vec3;
  5. import armory.logicnode.ApplyForceAtLocationNode;
  6. import iron.system.Input.Keyboard;
  7.  
  8. class PlayerControllerHX extends iron.Trait {
  9.         public function new() {
  10.                 super();
  11.  
  12.                 // notifyOnInit(function() {
  13.                 // });
  14.  
  15.                  notifyOnUpdate(function() {
  16.  
  17.                          if(iron.system.Input.getKeyboard.released("w")){
  18.                                  trace("working");
  19.                                  //applyImpulse(new Vec4(0, impulse, 0);
  20.                          }
  21.                 });
  22.  
  23.                 // notifyOnRemove(function() {
  24.                 // });
  25.         }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top