Table of Contents

Class EntityGravityGun

Namespace
VoxelPlayground.Entity
Assembly
GamePlay.dll
public class EntityGravityGun : EntityFirableWeapon
Inheritance
object
EntityGravityGun
Inherited Members
Extension Methods

Fields

accelerationModeColor

public Color accelerationModeColor

Field Value

Color

clawL

public Transform clawL

Field Value

Transform

clawR

public Transform clawR

Field Value

Transform

clawRotationActive

public float clawRotationActive

Field Value

float

clawRotationNormal

public float clawRotationNormal

Field Value

float

clawRotationSmoothness

public float clawRotationSmoothness

Field Value

float

clawUp

public Transform clawUp

Field Value

Transform

crystalCore

public Transform crystalCore

Field Value

Transform

crystalRotationSpeedActive

public float crystalRotationSpeedActive

Field Value

float

crystalRotationSpeedChangeSmoothness

public float crystalRotationSpeedChangeSmoothness

Field Value

float

crystalRotationSpeedNormal

public float crystalRotationSpeedNormal

Field Value

float

damping

public float damping

Field Value

float

deactivateOnReleased

public bool deactivateOnReleased

Field Value

bool

distanceAdjustSpeed

public float distanceAdjustSpeed

Field Value

float

followRotation

public bool followRotation

Field Value

bool

followSpeed

public float followSpeed

Field Value

float

forceKnockoutIfFartherThan

public float forceKnockoutIfFartherThan

Field Value

float

fxAnimator

public Animator fxAnimator

Field Value

Animator

grabBody

[Header("Gravity Grab")]
public Rigidbody grabBody

Field Value

Rigidbody

grabFreezeRotation

public bool grabFreezeRotation

Field Value

bool

grabLocalPos

public Vector3 grabLocalPos

Field Value

Vector3

grabRelativeRot

public Quaternion grabRelativeRot

Field Value

Quaternion

isGrabbing

public bool isGrabbing

Field Value

bool

joint

public ConfigurableJoint joint

Field Value

ConfigurableJoint

lineRenderer

public LineRenderer lineRenderer

Field Value

LineRenderer

maxVelocityClamp

public float maxVelocityClamp

Field Value

float

maxVelocityClampForCharacter

public float maxVelocityClampForCharacter

Field Value

float

maxVelocityClampOverall

public float maxVelocityClampOverall

Field Value

float

maxVelocityClampOverallForCharacter

public float maxVelocityClampOverallForCharacter

Field Value

float

muzzle

public Transform muzzle

Field Value

Transform

rayDistortion

public float rayDistortion

Field Value

float

rayDistortionGrabbing

public float rayDistortionGrabbing

Field Value

float

rayDistortionStandardLength

public float rayDistortionStandardLength

Field Value

float

rayMaxDistance

public float rayMaxDistance

Field Value

float

stiffness

public float stiffness

Field Value

float

targetDistance

public float targetDistance

Field Value

float

targetPos

public Vector3 targetPos

Field Value

Vector3

targetRot

public Quaternion targetRot

Field Value

Quaternion

throwForce

public float throwForce

Field Value

float

throwForceClampMax

public float throwForceClampMax

Field Value

float

throwForceMode

public ForceMode throwForceMode

Field Value

ForceMode

throwForceMulTime

public float throwForceMulTime

Field Value

float

useVelocity

public bool useVelocity

Field Value

bool

velocityModeColor

public Color velocityModeColor

Field Value

Color

Methods

Activate()

public override void Activate()

CalcCurvedLine(Vector3[], Ray, Vector3)

public static void CalcCurvedLine(Vector3[] linePoints, Ray muzzle, Vector3 targetPos)

Parameters

linePoints Vector3[]
muzzle Ray
targetPos Vector3

Deactivate()

public override void Deactivate()

OnAbilityLongPressed()

public override void OnAbilityLongPressed()

OnAbilityPressed()

public override void OnAbilityPressed()

OnDestroy()

public override void OnDestroy()

OnTriggerPressed()

public override void OnTriggerPressed()

OnTriggerReleased()

public override void OnTriggerReleased()

Start()

protected override void Start()