Skip to content

class_lineshape2d

reduz edited this page Feb 23, 2014 · 10 revisions

LineShape2D

#####Inherits: Shape2D

Brief Description

Line shape for 2D collision objects.

Member Functions

Description

Line shape for 2D collision objects. It works like a 2D plane and will not allow any body to go to the negative side. Not recommended for rigid bodies, and usually not recommended for static bodies either because it forces checks against it on every frame.

Member Function Description

  • void set_normal ( Vector2 normal )

Set the line normal.

Return the line normal.

  • void set_d ( real d )

Set the line distance from the origin.

  • real get_d ( ) const

Return the line distance from the origin.

Clone this wiki locally