StandardPhysicsConfig

public class StandardPhysicsConfig implements PhysicsConfig

Class StandardPhysicsConfig. Provides standardphysicsconfig functionality for the Hytale server.

java.lang.Object > StandardPhysicsConfig

Field Summary

density

protected double density

Field density.

gravity

protected double gravity

Field gravity.

bounciness

protected double bounciness

Field bounciness.

bounceCount

protected int bounceCount

Field bounceCount.

bounceLimit

protected double bounceLimit

Field bounceLimit.

sticksVertically

protected boolean sticksVertically

Field sticksVertically.

computeYaw

protected boolean computeYaw

Field computeYaw.

computePitch

protected boolean computePitch

Field computePitch.

rotationMode

protected RotationMode rotationMode

Field rotationMode.

allowRolling

protected boolean allowRolling

Field allowRolling.

rollingFrictionFactor

protected double rollingFrictionFactor

Field rollingFrictionFactor.

rollingSpeed

protected float rollingSpeed

Field rollingSpeed.

moveOutOfSolidSpeed

protected double moveOutOfSolidSpeed

Field moveOutOfSolidSpeed.

terminalVelocityAir

protected double terminalVelocityAir

Field terminalVelocityAir.

densityAir

protected double densityAir

Field densityAir.

terminalVelocityWater

protected double terminalVelocityWater

Field terminalVelocityWater.

densityWater

protected double densityWater

Field densityWater.

hitWaterImpulseLoss

protected double hitWaterImpulseLoss

Field hitWaterImpulseLoss.

rotationForce

protected double rotationForce

Field rotationForce.

speedRotationFactor

protected float speedRotationFactor

Field speedRotationFactor.

swimmingDampingFactor

protected double swimmingDampingFactor

Field swimmingDampingFactor.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

packet

final com.hypixel.hytale.protocol.PhysicsConfig packet

Field packet.

Method Detail

StandardPhysicsConfig

public public StandardPhysicsConfig ()

Method StandardPhysicsConfig.

getGravity

public double getGravity ()

Method getGravity.

apply

public void apply (@Nonnull final Holder holder, @Nullable final Ref creatorRef, @Nonnull final Vector3d velocity, @Nonnull final ComponentAccessor componentAccessor, final boolean predicted)

Method apply.

Parameters:
@Nonnull final Holder holder
@Nullable final Ref creatorRef
@Nonnull final Vector3d velocity
@Nonnull final ComponentAccessor componentAccessor
final boolean predicted

StandardPhysicsProvider

public new StandardPhysicsProvider (boundingBoxComponent, creatorUUID, this, velocity, predicted)

Method StandardPhysicsProvider.

Parameters:
boundingBoxComponent boundingBoxComponent
creatorUUID creatorUUID
this this
velocity velocity
predicted predicted

toPacket

public com.hypixel.hytale.protocol.PhysicsConfig toPacket ()

Method toPacket.

getBounciness

public double getBounciness ()

Method getBounciness.

getBounceCount

public int getBounceCount ()

Method getBounceCount.

getBounceLimit

public double getBounceLimit ()

Method getBounceLimit.

isSticksVertically

public boolean isSticksVertically ()

Method isSticksVertically.

isAllowRolling

public boolean isAllowRolling ()

Method isAllowRolling.

getRollingFrictionFactor

public double getRollingFrictionFactor ()

Method getRollingFrictionFactor.

getSwimmingDampingFactor

public double getSwimmingDampingFactor ()

Method getSwimmingDampingFactor.

getHitWaterImpulseLoss

public double getHitWaterImpulseLoss ()

Method getHitWaterImpulseLoss.