Package com.github.stephengold.joltjni
Class SimCollideBodyVsBody
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SimCollideBodyVsBody
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Collide 2 bodies during simulation. (native method:
PhysicsSystem::SimCollideBodyVsBody
)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collide
(ConstBody body1, ConstBody body2, Mat44Arg comTransform1, Mat44Arg comTransform2, CollideShapeSettings settings, CollideShapeCollector collector, ShapeFilter filter) Collide the specified bodies.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
SimCollideBodyVsBody
public SimCollideBodyVsBody()Instantiate a default collider.
-
-
Method Details
-
collide
public void collide(ConstBody body1, ConstBody body2, Mat44Arg comTransform1, Mat44Arg comTransform2, CollideShapeSettings settings, CollideShapeCollector collector, ShapeFilter filter) Collide the specified bodies. The collider is unaffected.- Parameters:
body1
- the first colliding body (not null, unaffected)body2
- the 2nd colliding body (not null, unaffected)comTransform1
- the center-of-mass transform of the first colliding body (not null, unaffected)comTransform2
- the center-of-mass transform of the 2nd colliding body (not null, unaffected)settings
- the collide-shape settings (not null)collector
- the collide-shape collector (not null)filter
- the shape filter (not null, unaffected)
-