search API (or start typing anywhere)
ShapeCollision
differ.data.ShapeCollision
Collision data, obtained by testing two shapes for a collision.
class
Members
otherOverlap
otherOverlap : Float
otherSeparationX
otherSeparationX : Float
otherSeparationY
otherSeparationY : Float
otherUnitVectorX
otherUnitVectorX : Float
otherUnitVectorY
otherUnitVectorY : Float
overlap
overlap : Float
The overlap amount
separationX
separationX : Float
X component of the separation vector, when subtracted from shape 1 will separate it from shape 2
separationY
separationY : Float
Y component of the separation vector, when subtracted from shape 1 will separate it from shape 2
shape1
shape1 : differ.shapes.Shape
The shape that was tested
shape2
shape2 : differ.shapes.Shape
The shape that shape1 was tested against
unitVectorX
unitVectorX : Float
X component of the unit vector, on the axis of the collision (i.e the normal of the face that was collided with)
unitVectorY
unitVectorY : Float
Y component of the unit vector, on the axis of the collision (i.e the normal of the face that was collided with)
Methods
clone
clone() : differ.data.ShapeCollision
copy_from
copy_from(_other:differ.data.ShapeCollision) : Void
reset
reset() : differ.data.ShapeCollision