Java Code Examples for com.jme3.bullet.PhysicsSpace#removeCollisionListener()
The following examples show how to use
com.jme3.bullet.PhysicsSpace#removeCollisionListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KinematicRagdollControl.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override protected void removePhysics(PhysicsSpace space) { if (baseRigidBody != null) { space.remove(baseRigidBody); } for (Iterator<PhysicsBoneLink> it = boneLinks.values().iterator(); it.hasNext();) { PhysicsBoneLink physicsBoneLink = it.next(); if (physicsBoneLink.joint != null) { space.remove(physicsBoneLink.joint); if (physicsBoneLink.rigidBody != null) { space.remove(physicsBoneLink.rigidBody); } } } space.removeCollisionListener(this); }
Example 2
Source File: DynamicAnimControl.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Remove all managed physics objects from the PhysicsSpace. */ @Override protected void removePhysics(PhysicsSpace space) { super.removePhysics(space); space.removeCollisionListener(this); space.removeTickListener(this); }
Example 3
Source File: BombControl.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void prePhysicsTick(PhysicsSpace space, float f) { space.removeCollisionListener(this); }
Example 4
Source File: BombControl.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void prePhysicsTick(PhysicsSpace space, float f) { space.removeCollisionListener(this); }