Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.71 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement