Click or drag to resize

KinematicCollision2D Properties

The KinematicCollision2D type exposes the following members.

Properties
  NameDescription
Public propertyCollider

The colliding body.

Public propertyColliderId
Public propertyColliderMetadata

The colliding body's metadata. See Object.

Public propertyColliderShape

The colliding body's shape.

Public propertyColliderShapeIndex

The colliding shape's index. See CollisionObject2D.

Public propertyColliderVelocity

The colliding object's velocity.

Public propertyDynamicObject
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.)
Public propertyLocalShape

The moving object's colliding shape.

Public propertyNativeInstance (Inherited from Object.)
Public propertyNormal

The colliding body's shape's normal at the point of collision.

Public propertyPosition

The point of collision, in global coordinates.

Public propertyRemainder

The moving object's remaining movement vector.

Public propertyTravel

The distance the moving object traveled before collision.

Top
See Also