BulletSim: PhysicsActorType() now returns the correct value rather than 'unknown'.
parent
76dc29dc37
commit
189f51233e
|
@ -92,6 +92,7 @@ public class BSCharacter : BSPhysObject
|
||||||
_localID = localID;
|
_localID = localID;
|
||||||
_avName = avName;
|
_avName = avName;
|
||||||
Scene = parent_scene;
|
Scene = parent_scene;
|
||||||
|
_physicsActorType = (int)ActorTypes.Agent;
|
||||||
_position = pos;
|
_position = pos;
|
||||||
_size = size;
|
_size = size;
|
||||||
_flying = isFlying;
|
_flying = isFlying;
|
||||||
|
|
|
@ -114,6 +114,7 @@ public sealed class BSPrim : BSPhysObject
|
||||||
// m_log.DebugFormat("{0}: BSPrim creation of {1}, id={2}", LogHeader, primName, localID);
|
// m_log.DebugFormat("{0}: BSPrim creation of {1}, id={2}", LogHeader, primName, localID);
|
||||||
_localID = localID;
|
_localID = localID;
|
||||||
_avName = primName;
|
_avName = primName;
|
||||||
|
_physicsActorType = (int)ActorTypes.Prim;
|
||||||
_scene = parent_scene;
|
_scene = parent_scene;
|
||||||
_position = pos;
|
_position = pos;
|
||||||
_size = size;
|
_size = size;
|
||||||
|
@ -444,8 +445,7 @@ public sealed class BSPrim : BSPhysObject
|
||||||
}
|
}
|
||||||
public override int PhysicsActorType {
|
public override int PhysicsActorType {
|
||||||
get { return _physicsActorType; }
|
get { return _physicsActorType; }
|
||||||
set { _physicsActorType = value;
|
set { _physicsActorType = value; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public override bool IsPhysical {
|
public override bool IsPhysical {
|
||||||
get { return _isPhysical; }
|
get { return _isPhysical; }
|
||||||
|
|
Loading…
Reference in New Issue