Exemplo n.º 1
0
        private bool TryInformCharacterOfContactChange(PhysX.ContactPairHeader contactPairHeader, PhysX.ContactPair[] pairs, int actorIndex)
        {
            PhysxCharacter character = contactPairHeader.Actors[actorIndex].UserData as PhysxCharacter;

            if (character != null)
            {
                character.OnContactChangeSync(contactPairHeader, pairs, actorIndex);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 internal void RemoveCharacterSync(PhysxCharacter physxCharacter)
 {
     _charActors.Remove(physxCharacter);
 }
Exemplo n.º 3
0
 internal void AddCharacterSync(PhysxCharacter newChar)
 {
     _charActors.Add(newChar);
 }
Exemplo n.º 4
0
 public override void Execute(PhysxScene scene)
 {
     FinalActor = new PhysxCharacter(scene, _height, _radius, _position, _rotation, _flying, _initialVelocity);
     scene.AddCharacterSync(FinalActor);
     FinshedEvent.Set();
 }
Exemplo n.º 5
0
 public override void Execute(PhysxScene scene)
 {
     FinalActor = new PhysxCharacter(scene, _height, _radius, _position, _rotation, _flying, _initialVelocity);
     scene.AddCharacterSync(FinalActor);
     FinshedEvent.Set();
 }
Exemplo n.º 6
0
 public RemoveCharacterCmd(PhysxCharacter character)
 {
     _character = character;
 }
 public RemoveCharacterCmd(PhysxCharacter character)
 {
     _character = character;
 }