internal static extern Quaternion Camera_GetFaceCameraRotation(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation, FaceCameraMode mode, float minAngle);
/// <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); }
/// <summary> /// Set rigid body rotation in world space. /// </summary> public void SetRotation(Urho.Quaternion rotation) { Runtime.ValidateRefCounted(this); RigidBody_SetRotation(handle, ref rotation); }
internal static extern IntPtr Scene_InstantiateJSON_MemoryBuffer(IntPtr handle, IntPtr source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
/// <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); }
internal static extern void CollisionShape_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
internal static extern void CollisionShape_SetTransform(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
/// <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)); }
internal static extern void Connection_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
/// <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))); }
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);
/// <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))); }
internal static extern IntPtr Scene_InstantiateXML(IntPtr handle, ref Urho.Resources.XmlElement source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
/// <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)); }
internal static extern void CollisionShape_SetCustomConvexHull(IntPtr handle, IntPtr custom, ref Urho.Vector3 scale, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
internal static extern void Constraint_SetOtherRotation(IntPtr handle, ref Urho.Quaternion rotation);
/// <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); }
/// <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); }
/// <summary> /// Set offset rotation. /// </summary> private void SetRotation(Urho.Quaternion rotation) { Runtime.ValidateRefCounted(this); CollisionShape_SetRotation(handle, ref rotation); }
/// <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); }
internal static extern IntPtr Scene_InstantiateXML1_File(IntPtr handle, IntPtr source, ref Urho.Vector3 position, ref Urho.Quaternion rotation, CreateMode mode);
internal static extern void CollisionShape_SetCone(IntPtr handle, float diameter, float height, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
/// <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))); }
/// <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); }
internal static extern void RigidBody_ApplyWorldTransform(IntPtr handle, ref Urho.Vector3 newWorldPosition, ref Urho.Quaternion newWorldRotation);
internal static extern void CollisionShape_SetConvexHull(IntPtr handle, IntPtr model, uint lodLevel, ref Urho.Vector3 scale, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
internal static extern void RigidBody_SetRotation(IntPtr handle, ref Urho.Quaternion rotation);
/// <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); }
internal static extern void RigidBody_SetTransform(IntPtr handle, ref Urho.Vector3 position, ref Urho.Quaternion rotation);
/// <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); }