Table of Contents

Class EntityBullet

Namespace
VoxelPlayground.Entity
Assembly
GamePlay.dll
public class EntityBullet : RecyclableEntity, IRecyclable
Inheritance
object
EntityBullet
Implements
Inherited Members
Extension Methods

Fields

direction

protected Vector3 direction

Field Value

Vector3

dmgScale

public float dmgScale

Field Value

float

hitLayerMask

public LayerMask hitLayerMask

Field Value

LayerMask

speed

protected float speed

Field Value

float

Methods

AddForceToJoint(Rigidbody, Vector3, Vector3)

protected void AddForceToJoint(Rigidbody jointRB, Vector3 force, Vector3 hitPoint)

Parameters

jointRB Rigidbody
force Vector3
hitPoint Vector3

OnHit(RaycastHit)

protected virtual void OnHit(RaycastHit hitPoint)

Parameters

hitPoint RaycastHit

OnSpawn(float, Vector3)

public virtual void OnSpawn(float _speed, Vector3 _direction)

Parameters

_speed float
_direction Vector3