Esempio n. 1
0
 internal static extern Quaternion Camera_GetFaceCameraRotation(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation, FaceCameraMode mode, float minAngle);
Esempio n. 2
0
 /// <summary>
 /// Apply new world transform after a simulation step. Called internally.
 /// </summary>
 public void ApplyWorldTransform(Urho.Vector3 newWorldPosition, Urho.Quaternion newWorldRotation)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody_ApplyWorldTransform(handle, ref newWorldPosition, ref newWorldRotation);
 }
Esempio n. 3
0
 /// <summary>
 /// Set rigid body rotation in world space.
 /// </summary>
 public void SetRotation(Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody_SetRotation(handle, ref rotation);
 }
Esempio n. 4
0
 internal static extern IntPtr Scene_InstantiateJSON_MemoryBuffer(IntPtr handle, IntPtr source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
Esempio n. 5
0
 /// <summary>
 /// Set rigid body position and rotation in world space as an atomic operation.
 /// </summary>
 public void SetTransform(Urho.Vector3 position, Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody_SetTransform(handle, ref position, ref rotation);
 }
Esempio n. 6
0
 internal static extern void CollisionShape_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
Esempio n. 7
0
 internal static extern void CollisionShape_SetTransform(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
Esempio n. 8
0
 /// <summary>
 /// Add a decal at world coordinates, using a target drawable's geometry for reference. If the decal needs to move with the target, the decal component should be created to the target's node. Return true if successful.
 /// </summary>
 public bool AddDecal(Drawable target, Urho.Vector3 worldPosition, Urho.Quaternion worldRotation, float size, float aspectRatio, float depth, Urho.Vector2 topLeftUV, Urho.Vector2 bottomRightUV, float timeToLive = 0f, float normalCutoff = 0.1f, uint subGeometry = uint.MaxValue)
 {
     Runtime.ValidateRefCounted(this);
     return(DecalSet_AddDecal(handle, (object)target == null ? IntPtr.Zero : target.Handle, ref worldPosition, ref worldRotation, size, aspectRatio, depth, ref topLeftUV, ref bottomRightUV, timeToLive, normalCutoff, subGeometry));
 }
Esempio n. 9
0
 internal static extern void Connection_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
Esempio n. 10
0
 /// <summary>
 /// Instantiate scene content from XML data. Return root node if successful.
 /// </summary>
 public Node InstantiateXml(File source, Urho.Vector3 position, Urho.Quaternion rotation, CreateMode mode)
 {
     Runtime.ValidateRefCounted(this);
     return(Runtime.LookupObject <Node> (Scene_InstantiateXML1(handle, (object)source == null ? IntPtr.Zero : source.Handle, ref position, ref rotation, mode)));
 }
Esempio n. 11
0
 internal static extern bool DecalSet_AddDecal(IntPtr handle, IntPtr target, ref Urho.Vector3 worldPosition, ref Urho.Quaternion worldRotation, float size, float aspectRatio, float depth, ref Urho.Vector2 topLeftUV, ref Urho.Vector2 bottomRightUV, float timeToLive, float normalCutoff, uint subGeometry);
Esempio n. 12
0
 /// <summary>
 /// Instantiate scene content from XML data. Return root node if successful.
 /// </summary>
 public Node InstantiateXml(Urho.Resources.XmlElement source, Urho.Vector3 position, Urho.Quaternion rotation, CreateMode mode)
 {
     Runtime.ValidateRefCounted(this);
     return(Runtime.LookupObject <Node> (Scene_InstantiateXML(handle, ref source, ref position, ref rotation, mode)));
 }
Esempio n. 13
0
 internal static extern IntPtr Scene_InstantiateXML(IntPtr handle, ref Urho.Resources.XmlElement source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
Esempio n. 14
0
 /// <summary>
 /// Return a world rotation for facing a camera on certain axes based on the existing world rotation.
 /// </summary>
 public Quaternion GetFaceCameraRotation(Urho.Vector3 position, Urho.Quaternion rotation, FaceCameraMode mode, float minAngle)
 {
     Runtime.ValidateRefCounted(this);
     return(Camera_GetFaceCameraRotation(handle, ref position, ref rotation, mode, minAngle));
 }
Esempio n. 15
0
 internal static extern void CollisionShape_SetCustomConvexHull(IntPtr handle, IntPtr custom, ref Urho.Vector3 scale, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
Esempio n. 16
0
 internal static extern void Constraint_SetOtherRotation(IntPtr handle, ref Urho.Quaternion rotation);
Esempio n. 17
0
 /// <summary>
 /// Set as a convex hull from CustomGeometry.
 /// </summary>
 public void SetCustomConvexHull(CustomGeometry custom, Urho.Vector3 scale, Urho.Vector3 position, Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     CollisionShape_SetCustomConvexHull(handle, (object)custom == null ? IntPtr.Zero : custom.Handle, ref scale, ref position, ref rotation);
 }
Esempio n. 18
0
 /// <summary>
 /// Set constraint rotation relative to the other body. If connected to the static world, is a world space rotation.
 /// </summary>
 private void SetOtherRotation(Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     Constraint_SetOtherRotation(handle, ref rotation);
 }
Esempio n. 19
0
 /// <summary>
 /// Set offset rotation.
 /// </summary>
 private void SetRotation(Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     CollisionShape_SetRotation(handle, ref rotation);
 }
Esempio n. 20
0
 /// <summary>
 /// Set as a static plane.
 /// </summary>
 public void SetStaticPlane(Urho.Vector3 position, Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     CollisionShape_SetStaticPlane(handle, ref position, ref rotation);
 }
Esempio n. 21
0
 internal static extern IntPtr Scene_InstantiateXML1_File(IntPtr handle, IntPtr source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
Esempio n. 22
0
 internal static extern void CollisionShape_SetCone(IntPtr handle, float diameter, float height, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
Esempio n. 23
0
 /// <summary>
 /// Instantiate scene content from JSON data. Return root node if successful.
 /// </summary>
 public Node InstantiateJson(MemoryBuffer source, Urho.Vector3 position, Urho.Quaternion rotation, CreateMode mode = CreateMode.Replicated)
 {
     Runtime.ValidateRefCounted(this);
     return(Runtime.LookupObject <Node> (Scene_InstantiateJSON_MemoryBuffer(handle, (object)source == null ? IntPtr.Zero : source.Handle, ref position, ref rotation, mode)));
 }
Esempio n. 24
0
 /// <summary>
 /// Set as a cone.
 /// </summary>
 public void SetCone(float diameter, float height, Urho.Vector3 position, Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     CollisionShape_SetCone(handle, diameter, height, ref position, ref rotation);
 }
Esempio n. 25
0
 internal static extern void RigidBody_ApplyWorldTransform(IntPtr handle, ref Urho.Vector3 newWorldPosition, ref Urho.Quaternion newWorldRotation);
Esempio n. 26
0
 internal static extern void CollisionShape_SetConvexHull(IntPtr handle, IntPtr model, uint lodLevel, ref Urho.Vector3 scale, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
Esempio n. 27
0
 internal static extern void RigidBody_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
Esempio n. 28
0
 /// <summary>
 /// Set as a convex hull from Model.
 /// </summary>
 public void SetConvexHull(Model model, uint lodLevel, Urho.Vector3 scale, Urho.Vector3 position, Urho.Quaternion rotation)
 {
     Runtime.ValidateRefCounted(this);
     CollisionShape_SetConvexHull(handle, (object)model == null ? IntPtr.Zero : model.Handle, lodLevel, ref scale, ref position, ref rotation);
 }
Esempio n. 29
0
 internal static extern void RigidBody_SetTransform(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
Esempio n. 30
0
 /// <summary>
 /// Perform a physics world swept convex test using a user-supplied collision shape and return the first hit.
 /// </summary>
 public void ConvexCast(ref PhysicsRaycastResult result, CollisionShape shape, Urho.Vector3 startPos, Urho.Quaternion startRot, Urho.Vector3 endPos, Urho.Quaternion endRot, uint collisionMask)
 {
     Runtime.ValidateRefCounted(this);
     PhysicsWorld_ConvexCast(handle, ref result, (object)shape == null ? IntPtr.Zero : shape.Handle, ref startPos, ref startRot, ref endPos, ref endRot, collisionMask);
 }