Interface IBulletController
Namespace: BulletStorm.BulletSystem
Assembly: BulletStorm.dll
Syntax
public interface IBulletController
Methods
| Improve this Doc View SourceChangePosition(Func<Vector3, Vector3, Vector3>)
Changes all bullets' position in the controller.
Declaration
void ChangePosition(Func<Vector3, Vector3, Vector3> operation)
Parameters
Type | Name | Description |
---|---|---|
System.Func<UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3> | operation | Vector3 ChangedPosition(Vector3 oldPosition, Vector3 oldVelocity) |
ChangeVelocity(Func<Vector3, Vector3, Vector3>)
Changes all bullets' velocity in the controller.
Declaration
void ChangeVelocity(Func<Vector3, Vector3, Vector3> operation)
Parameters
Type | Name | Description |
---|---|---|
System.Func<UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3> | operation | Vector3 ChangedVelocity(Vector3 oldPosition, Vector3 oldVelocity) |
Destroy()
Destroy the controller when it contains no bullet.
Declaration
void Destroy()
Emit(BulletEmitParam, Transform)
Emits a new bullet from the controller.
Declaration
void Emit(BulletEmitParam emitParam, Transform emitter)
Parameters
Type | Name | Description |
---|---|---|
BulletEmitParam | emitParam | Bullet initial parameters. |
UnityEngine.Transform | emitter | Transform of the emitter. |
SetParent(Transform)
Set the parent transform of the controller.
Declaration
void SetParent(Transform parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | parent | If the controller simulates in local space, this parameter preforms as the simulation space. |