Class EntityBullet
- Namespace
- VoxelPlayground.Entity
- Assembly
- GamePlay.dll
public class EntityBullet : RecyclableEntity, IRecyclable
- Inheritance
-
objectEntityBullet
- Implements
- Inherited Members
- Extension Methods
Fields
direction
protected Vector3 direction
Field Value
dmgScale
public float dmgScale
Field Value
- float
hitLayerMask
public LayerMask hitLayerMask
Field Value
speed
protected float speed
Field Value
- float
Methods
AddForceToJoint(Rigidbody, Vector3, Vector3)
protected void AddForceToJoint(Rigidbody jointRB, Vector3 force, Vector3 hitPoint)
Parameters
OnHit(RaycastHit)
protected virtual void OnHit(RaycastHit hitPoint)
Parameters
hitPointRaycastHit
OnSpawn(float, Vector3)
public virtual void OnSpawn(float _speed, Vector3 _direction)
Parameters
_speedfloat_directionVector3