Show / Hide Table of Contents

Interface IBulletController

Namespace: BulletStorm.BulletSystem
Assembly: BulletStorm.dll
Syntax
public interface IBulletController

Methods

| Improve this Doc View Source

ChangePosition(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)

| Improve this Doc View Source

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)

| Improve this Doc View Source

Destroy()

Destroy the controller when it contains no bullet.

Declaration
void Destroy()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX