/
PhysicsBody2D.hx
38 lines (33 loc) · 1.16 KB
/
PhysicsBody2D.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
PhysicsBody2D is an abstract base class for implementing a physics body. All *Body2D types inherit from it.
**/
@:libType
@:csNative
@:native("Godot.PhysicsBody2D")
@:autoBuild(godot.Godot.buildUserClass())
extern abstract class PhysicsBody2D extends godot.CollisionObject2D {
/**
Both collision_layer and collision_mask. Returns collision_layer when accessed. Updates collision_layer and collision_mask when modified.
**/
@:native("Layers")
public var layers:UInt;
/**
Returns an array of nodes that were added as collision exceptions for this body.
**/
@:native("GetCollisionExceptions")
public function getCollisionExceptions():godot.collections.Array;
/**
Adds a body to the list of bodies that this body can't collide with.
**/
@:native("AddCollisionExceptionWith")
public function addCollisionExceptionWith(body:godot.Node):Void;
/**
Removes a body from the list of bodies that this body can't collide with.
**/
@:native("RemoveCollisionExceptionWith")
public function removeCollisionExceptionWith(body:godot.Node):Void;
}