Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package arm;
- import iron.math.Vec4;
- import iron.math.Vec3;
- import armory.logicnode.ApplyForceAtLocationNode;
- import iron.system.Input.Keyboard;
- class PlayerControllerHX extends iron.Trait {
- public function new() {
- super();
- // notifyOnInit(function() {
- // });
- notifyOnUpdate(function() {
- if(iron.system.Input.getKeyboard.released("w")){
- trace("working");
- //applyImpulse(new Vec4(0, impulse, 0);
- }
- });
- // notifyOnRemove(function() {
- // });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement