C# Class Universe.Physics.BasicPhysicsPlugin.BasicScene

Inheritance: Universe.Framework.Physics.PhysicsScene
显示文件 Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
AddAvatar ( string avName, Vector3 position, Quaternion rotation, Vector3 size, bool isFlying, uint localID, UUID UUID ) : PhysicsActor
AddPrimShape ( UUID primID, uint localID, string name, byte physicsType, PrimitiveBaseShape shape, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, int material, float friction, float restitution, float gravityMultiplier, float density ) : PhysicsActor
BasicScene ( ) : System.Collections.Generic
Dispose ( ) : void
GetTopColliders ( ) : float>.Dictionary
Initialize ( IMesher meshmerizer, IScene scene ) : void
PostInitialize ( IConfigSource config ) : void
RemoveAvatar ( PhysicsActor actor ) : void
RemovePrim ( PhysicsActor prim ) : void
SetTerrain ( ITerrainChannel channel, short heightMap ) : void
SetWaterLevel ( double height, short map ) : void
Simulate ( float timeStep ) : void

Method Details

AddAvatar() public method

public AddAvatar ( string avName, Vector3 position, Quaternion rotation, Vector3 size, bool isFlying, uint localID, UUID UUID ) : PhysicsActor
avName string
position Vector3
rotation Quaternion
size Vector3
isFlying bool
localID uint
UUID UUID
return Universe.Framework.Physics.PhysicsActor

AddPrimShape() public method

public AddPrimShape ( UUID primID, uint localID, string name, byte physicsType, PrimitiveBaseShape shape, Vector3 position, Vector3 size, Quaternion rotation, bool isPhysical, int material, float friction, float restitution, float gravityMultiplier, float density ) : PhysicsActor
primID UUID
localID uint
name string
physicsType byte
shape PrimitiveBaseShape
position Vector3
size Vector3
rotation Quaternion
isPhysical bool
material int
friction float
restitution float
gravityMultiplier float
density float
return Universe.Framework.Physics.PhysicsActor

BasicScene() public method

public BasicScene ( ) : System.Collections.Generic
return System.Collections.Generic

Dispose() public method

public Dispose ( ) : void
return void

GetTopColliders() public method

public GetTopColliders ( ) : float>.Dictionary
return float>.Dictionary

Initialize() public method

public Initialize ( IMesher meshmerizer, IScene scene ) : void
meshmerizer IMesher
scene IScene
return void

PostInitialize() public method

public PostInitialize ( IConfigSource config ) : void
config IConfigSource
return void

RemoveAvatar() public method

public RemoveAvatar ( PhysicsActor actor ) : void
actor Universe.Framework.Physics.PhysicsActor
return void

RemovePrim() public method

public RemovePrim ( PhysicsActor prim ) : void
prim Universe.Framework.Physics.PhysicsActor
return void

SetTerrain() public method

public SetTerrain ( ITerrainChannel channel, short heightMap ) : void
channel ITerrainChannel
heightMap short
return void

SetWaterLevel() public method

public SetWaterLevel ( double height, short map ) : void
height double
map short
return void

Simulate() public method

public Simulate ( float timeStep ) : void
timeStep float
return void