mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
* Implemented grab and throw in ODE. It's a little strong still so toss gently at first to test the waters or you'll lose prim to the pit at the edge of the sim. Make sure the object is physical before trying to toss it or it'll just move to the new location.
This commit is contained in:
@@ -122,6 +122,10 @@ namespace OpenSim.Region.Physics.Manager
|
||||
|
||||
public abstract PrimitiveBaseShape Shape { set; }
|
||||
|
||||
public abstract bool Grabbed { set; }
|
||||
|
||||
public abstract bool Selected { set; }
|
||||
|
||||
public virtual void RequestPhysicsterseUpdate()
|
||||
{
|
||||
// Make a temporary copy of the event to avoid possibility of
|
||||
@@ -190,6 +194,8 @@ namespace OpenSim.Region.Physics.Manager
|
||||
public abstract void AddForce(PhysicsVector force);
|
||||
|
||||
public abstract void SetMomentum(PhysicsVector momentum);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class NullPhysicsActor : PhysicsActor
|
||||
@@ -206,6 +212,17 @@ namespace OpenSim.Region.Physics.Manager
|
||||
set { return; }
|
||||
}
|
||||
|
||||
public override bool Grabbed
|
||||
{
|
||||
set { return; }
|
||||
}
|
||||
|
||||
public override bool Selected
|
||||
{
|
||||
set { return; }
|
||||
}
|
||||
|
||||
|
||||
public override bool CollidingGround
|
||||
{
|
||||
get { return false; }
|
||||
|
||||
Reference in New Issue
Block a user