Yea, So I have been experimenting with the physics listener, but I would like the physics listener to respond to player bumping in to it, however, I need to get the BetterPlayerControl’s Collision Shape. How do you do that?
public class CharacterControl extends BetterCharacterControl
{
public CharacterControl(float radius, float height, float mass)
{
super(radius, height, mass);
}
public Vector3f getPhysicsLocation()
{
return location;
}
public PhysicsRigidBody getRigidBody()
{
return rigidBody;
}
}
Note that this does not support serialization yet, you’d need an empty constructor.
Anyway thats how I do it
1 Like