Click or drag to resize

Bullet Class

The component implementing the bullet physics.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          RavingBots.MagicGestures.Game.MagicPhysActor
            RavingBots.MagicGestures.Game.MagicBullet

Namespace:  RavingBots.MagicGestures.Game.Magic
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class Bullet : PhysActor

The Bullet type exposes the following members.

Constructors
  NameDescription
Public methodBullet
Initializes a new instance of the Bullet class
Top
Properties
  NameDescription
Public propertyFrozen
If , the bullet will be frozen in place.
Public propertyRigidbody
The Rigidbody instance used.
Top
Methods
  NameDescription
Public methodFire
Launch the bullet.
Protected methodFixedUpdate
Apply the thrust force if necessary.
Protected methodOnCollisionEnter
Called when this actor collides with something.
(Overrides PhysActorOnCollisionEnter(Collision).)
Top
Events
  NameDescription
Public eventOnCollision
Called when the bullet collides with another body.
Top
Fields
  NameDescription
Private field_rigidbody
The Rigidbody instance used.
Private field_thrustDuration
The current duration of the thrust.
Protected fieldIgnoreGravity
If , the gravity will not affect this bullet.
Protected fieldLaunchVelocity
The launch velocity of the bullet.
Protected fieldThrustDuration
The duration of the bullet's thrust.
Protected fieldThrustPower
The strength of the bullet's thrust.
Top
See Also