Bullet Class |
Namespace: RavingBots.MagicGestures.Game.Magic
public class Bullet : PhysActor
The Bullet type exposes the following members.
| Name | Description | |
|---|---|---|
| Frozen |
If , the bullet will be frozen in place.
| |
| Rigidbody |
The Rigidbody instance used.
|
| Name | Description | |
|---|---|---|
| Fire |
Launch the bullet.
| |
| FixedUpdate |
Apply the thrust force if necessary.
| |
| OnCollisionEnter |
Called when this actor collides with something.
(Overrides PhysActorOnCollisionEnter(Collision).) |
| Name | Description | |
|---|---|---|
| OnCollision |
Called when the bullet collides with another body.
|
| Name | Description | |
|---|---|---|
| _rigidbody |
The Rigidbody instance used.
| |
| _thrustDuration |
The current duration of the thrust.
| |
| IgnoreGravity |
If , the gravity will not affect this bullet.
| |
| LaunchVelocity |
The launch velocity of the bullet.
| |
| ThrustDuration |
The duration of the bullet's thrust.
| |
| ThrustPower |
The strength of the bullet's thrust.
|