public void Initialise() { LevelMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); CharacterMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); TriggerVolumeMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); DescribedMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); CharacterSensorMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); EnemyMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); NoColID = new MaterialID(Engine.Singleton.NewtonWorld); // NoColLevelPair = new MaterialPair( Engine.Singleton.NewtonWorld, LevelMaterialID, NoColID); NoColLevelPair.SetContactCallback(new IgnoreCollisionCallback()); NoColDMPair = new MaterialPair( Engine.Singleton.NewtonWorld, DescribedMaterialID, NoColID); NoColDMPair.SetContactCallback(new IgnoreCollisionCallback()); NoColCharPair = new MaterialPair( Engine.Singleton.NewtonWorld, CharacterMaterialID, NoColID); NoColCharPair.SetContactCallback(new IgnoreCollisionCallback()); // SensorLevelPair = new MaterialPair( Engine.Singleton.NewtonWorld, LevelMaterialID, CharacterSensorMaterialID); SensorLevelPair.SetContactCallback(new IgnoreCollisionCallback()); SensorTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, TriggerVolumeMaterialID, CharacterSensorMaterialID); SensorTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); DescribedTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, DescribedMaterialID, TriggerVolumeMaterialID); DescribedTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); EnemyTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, EnemyMaterialID, TriggerVolumeMaterialID); EnemyTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); }
public void Initialise() { LevelMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); CharacterMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); TriggerVolumeMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); DescribedMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); CharacterSensorMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); EnemyMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); WaypointMaterialID = new MaterialID(Engine.Singleton.NewtonWorld); TriggerVolumeCharacterPair = new MaterialPair( Engine.Singleton.NewtonWorld, CharacterMaterialID, TriggerVolumeMaterialID); TriggerVolumeCharacterPair.SetContactCallback(new TriggerVolumeGameObjectCallback()); CharacterSensorPair = new MaterialPair( Engine.Singleton.NewtonWorld, CharacterMaterialID, CharacterSensorMaterialID); CharacterSensorPair.SetContactCallback(new SensorGameObjectCallback()); SensorLevelPair = new MaterialPair( Engine.Singleton.NewtonWorld, LevelMaterialID, CharacterSensorMaterialID); //SensorLevelPair.SetContactCallback(new IgnoreCollisionCallback()); SensorLevelPair.SetContactCallback(new SensorGameObjectCallback()); SensorTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, TriggerVolumeMaterialID, CharacterSensorMaterialID); SensorTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); SensorDescribedObjectPair = new MaterialPair( Engine.Singleton.NewtonWorld, DescribedMaterialID, CharacterSensorMaterialID); SensorDescribedObjectPair.SetContactCallback(new SensorGameObjectCallback()); DescribedTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, DescribedMaterialID, TriggerVolumeMaterialID); DescribedTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); EnemyTriggerVolumePair = new MaterialPair( Engine.Singleton.NewtonWorld, EnemyMaterialID, TriggerVolumeMaterialID); EnemyTriggerVolumePair.SetContactCallback(new IgnoreCollisionCallback()); EnemySensorPair = new MaterialPair( Engine.Singleton.NewtonWorld, EnemyMaterialID, CharacterSensorMaterialID); EnemySensorPair.SetContactCallback(new SensorGameObjectCallback()); WaypointCharacterPair = new MaterialPair( Engine.Singleton.NewtonWorld, WaypointMaterialID, CharacterMaterialID); WaypointCharacterPair.SetContactCallback(new IgnoreCollisionCallback()); WaypointTriggerPair = new MaterialPair( Engine.Singleton.NewtonWorld, WaypointMaterialID, TriggerVolumeMaterialID); WaypointTriggerPair.SetContactCallback(new IgnoreCollisionCallback()); WaypointEnemyPair = new MaterialPair( Engine.Singleton.NewtonWorld, WaypointMaterialID, EnemyMaterialID); WaypointEnemyPair.SetContactCallback(new IgnoreCollisionCallback()); WaypointDescribedPair = new MaterialPair( Engine.Singleton.NewtonWorld, WaypointMaterialID, DescribedMaterialID); WaypointDescribedPair.SetContactCallback(new IgnoreCollisionCallback()); WaypointSensorPair = new MaterialPair( Engine.Singleton.NewtonWorld, WaypointMaterialID, CharacterSensorMaterialID); WaypointSensorPair.SetContactCallback(new IgnoreCollisionCallback()); }