Beispiel #1
0
        public void Launch(Vec3 velocity)
        {
            ReceiveUpdates = true;
            state          = BoidState.Launched;

            Physics.AddImpulse(velocity);
            OnLaunched(velocity);
        }
Beispiel #2
0
 protected override void OnCollision(EntityId targetEntityId, Vec3 hitPos, Vec3 dir, short materialId, Vec3 contactNormal)
 {
     Physics.AddImpulse(contactNormal * BounceMultiplier);
 }
Beispiel #3
0
 public void SetImpulse(TV_3DVECTOR value)
 {
     Physics.AddImpulse(PhysicsId, value);
 }