mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Stop having to call SetHeight again in ScenePresence.AddToPhysicalScene() when we've already passed size information to the avatar at PhysicsScene.AddAvatar()
Eliminate some copypasta for height setting in OdeCharacter
This commit is contained in:
@@ -44,8 +44,9 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
|
||||
private bool flying;
|
||||
private bool iscolliding;
|
||||
|
||||
public BasicActor()
|
||||
public BasicActor(Vector3 size)
|
||||
{
|
||||
Size = size;
|
||||
}
|
||||
|
||||
public override int PhysicsActorType
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
|
||||
}
|
||||
public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
|
||||
{
|
||||
BasicActor act = new BasicActor();
|
||||
BasicActor act = new BasicActor(size);
|
||||
act.Position = position;
|
||||
act.Flying = isFlying;
|
||||
_actors.Add(act);
|
||||
|
||||
Reference in New Issue
Block a user