ForceProviderEntity

public class ForceProviderEntity extends ForceProviderStandard

Class ForceProviderEntity. Provides forceproviderentity functionality for the Hytale server.

java.lang.Object > ForceProviderStandard > ForceProviderEntity

Field Summary

boundingBox

protected BoundingBox boundingBox

Field boundingBox.

forceProviderStandardState

protected ForceProviderStandardState forceProviderStandardState

Field forceProviderStandardState.

density

protected double density

Field density.

area

final double area

Field area.

Method Detail

ForceProviderEntity

public public ForceProviderEntity (final BoundingBox boundingBox)

Method ForceProviderEntity.

Parameters:
final BoundingBox boundingBox

setDensity

public void setDensity (final double density)

Method setDensity.

Parameters:
final double density

setForceProviderStandardState

public void setForceProviderStandardState (final ForceProviderStandardState forceProviderStandardState)

Method setForceProviderStandardState.

Parameters:
final ForceProviderStandardState forceProviderStandardState

getForceProviderStandardState

public ForceProviderStandardState getForceProviderStandardState ()

Method getForceProviderStandardState.

getMass

public double getMass (final double volume)

Method getMass.

Parameters:
final double volume

getVolume

public double getVolume ()

Method getVolume.

getProjectedArea

public double getProjectedArea (@Nonnull final PhysicsBodyState bodyState, final double speed)

Method getProjectedArea.

Parameters:
@Nonnull final PhysicsBodyState bodyState
final double speed

getDensity

public double getDensity ()

Method getDensity.

getFrictionCoefficient

public double getFrictionCoefficient ()

Method getFrictionCoefficient.