public override void RemovePrim(PhysicsActor actor) { BasicPhysicsPrim prim = (BasicPhysicsPrim)actor; if (_prims.Contains(prim)) { _prims.Remove(prim); } }
public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, uint localid) { BasicPhysicsPrim prim = new BasicPhysicsPrim(primName, localid, position, size, rotation, pbs); prim.IsPhysical = isPhysical; _prims.Add(prim); return prim; }
public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, uint localid) { BasicPhysicsPrim prim = new BasicPhysicsPrim(primName, localid, position, size, rotation, pbs); prim.IsPhysical = isPhysical; _prims.Add(prim); return(prim); }