BasicBroadphase Class
Performs a n^2 check of all collision objects to see if any could be in contact
Constructor
BasicBroadphase
()
Item Index
Methods
Methods
addBody
(
-
body
Adds a body to the broadphase for contact checking
Parameters:
-
body
MassPoint | RigidBodybody to add to the broadphase contact checking
predictContactPairs
()
Checks all collision objects to find any which are possibly in contact
resulting contact pairs are held in the object's collision_pairs
property
removeBody
(
-
body
Removes a body from the broadphase contact checking
Parameters:
-
body
MassPoint | RigidBodybody to remove from the broadphase contact checking
Properties
bodies
Array
Holds all of the collision objects that the broadphase is responsible for
collision_pairs
Array
Array of all (current) collision pairs between the broadphase's bodies
end {vec3{ end point of the segment
Vec3
Checks if a ray segment intersects with objects in the world