PlaneShape Class
Constructor
PlaneShape
-
orientation
-
half_width
-
half_length
Parameters:
-
orientation
Numberindex of axis which is the plane's normal ( 0 = X, 1 = Y, 2 = Z )
-
half_width
Numberhalf width of the plane
-
half_length
Numberhalf height of the plane
Item Index
Methods
Methods
calculateLocalAABB
-
aabb
Calculates this shape's local AABB and stores it in the passed AABB object
Parameters:
-
aabb
AABB
findSupportPoint
-
direction
-
support_point
Given direction
, find the point in this body which is the most extreme in that direction.
This support point is calculated in world coordinates and stored in the second parameter support_point
Parameters:
-
direction
Vec3direction to use in finding the support point
-
support_point
Vec3vec3 variable which will contain the supporting point after calling this method
Properties
end {vec3{ end point of the segment
Vec3
Checks if a ray segment intersects with the shape
half_height
Number
half width of the plane
half_length
Number
half length of the plane
half_width
Number
index of axis which is the plane's normal ( 0 = X, 1 = Y, 2 = Z ) when 0, width is Y and length is Z when 1, width is X and length is Z when 2, width is X and length is Y