BoxShape Class
Constructor
BoxShape
(
-
half_width -
half_height -
half_depth
Parameters:
-
half_widthNumberhalf width of the cube ( X axis )
-
half_heightNumberhalf height of the cube ( Y axis )
-
half_depthNumberhalf depth of the cube ( Z axis )
Item Index
Methods
Methods
calculateLocalAABB
(
-
aabb
Calculates this shape's local AABB and stores it in the passed AABB object
Parameters:
-
aabbAABB
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:
-
directionVec3direction to use in finding the support point
-
support_pointVec3vec3 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 height of the cube ( Y axis )
half_height
Number
Half width of the cube ( Z axis )
half_width
Number
Half width of the cube ( X axis )
