-
Notifications
You must be signed in to change notification settings - Fork 0
class_lineshape2d
reduz edited this page Apr 10, 2014
·
10 revisions
####Inherits: Shape2D ####Category: Core
Line shape for 2D collision objects.
- void set_normal ( Vector2 normal )
- Vector2 get_normal ( ) const
- void set_d ( float d )
- float get_d ( ) const
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.
- void set_normal ( Vector2 normal )
Set the line normal.
- Vector2 get_normal ( ) const
Return the line normal.
- void set_d ( float d )
Set the line distance from the origin.
- float get_d ( ) const
Return the line distance from the origin.