Esempio n. 1
0
 internal static extern void ConstraintMotor2D_SetLinearOffset(IntPtr handle, ref Urho.Vector2 linearOffset);
Esempio n. 2
0
 internal static extern void PhysicsWorld2D_SetGravity(IntPtr handle, ref Urho.Vector2 gravity);
Esempio n. 3
0
 internal static extern IntPtr PhysicsWorld2D_GetRigidBody(IntPtr handle, ref Urho.Vector2 point, uint collisionMask);
Esempio n. 4
0
 /// <summary>
 /// Set other body anchor.
 /// </summary>
 private void SetOtherBodyAnchor(Urho.Vector2 anchor)
 {
     Runtime.ValidateRefCounted(this);
     ConstraintRope2D_SetOtherBodyAnchor(handle, ref anchor);
 }
Esempio n. 5
0
 /// <summary>
 /// Set vertices.
 /// </summary>
 public void SetVertices(Urho.Vector2 vertex1, Urho.Vector2 vertex2)
 {
     Runtime.ValidateRefCounted(this);
     CollisionEdge2D_SetVertices(handle, ref vertex1, ref vertex2);
 }
Esempio n. 6
0
 /// <summary>
 /// Set floating point position.
 /// </summary>
 private void SetPosition(Urho.Vector2 position)
 {
     Runtime.ValidateRefCounted(this);
     Sprite_SetPosition(handle, ref position);
 }
Esempio n. 7
0
 /// <summary>
 /// Set scale. Scale also affects child sprites.
 /// </summary>
 private void SetScale(Urho.Vector2 scale)
 {
     Runtime.ValidateRefCounted(this);
     Sprite_SetScale(handle, ref scale);
 }
Esempio n. 8
0
 /// <summary>
 /// Set target.
 /// </summary>
 private void SetTarget(Urho.Vector2 target)
 {
     Runtime.ValidateRefCounted(this);
     ConstraintMouse2D_SetTarget(handle, ref target);
 }
Esempio n. 9
0
 internal static extern void RigidBody2D_SetMassCenter(IntPtr handle, ref Urho.Vector2 center);
Esempio n. 10
0
 /// <summary>
 /// Set texture coordinate transform.
 /// </summary>
 public void SetUVTransform(Urho.Vector2 offset, float rotation, float repeat)
 {
     Runtime.ValidateRefCounted(this);
     Material_SetUVTransform1(handle, ref offset, rotation, repeat);
 }
Esempio n. 11
0
 internal static extern void ConstraintMouse2D_SetTarget(IntPtr handle, ref Urho.Vector2 target);
Esempio n. 12
0
 internal static extern void Material_SetUVTransform1(IntPtr handle, ref Urho.Vector2 offset, float rotation, float repeat);
Esempio n. 13
0
 /// <summary>
 /// Set hot spot.
 /// </summary>
 private void SetHotSpot(Urho.Vector2 hotspot)
 {
     Runtime.ValidateRefCounted(this);
     StaticSprite2D_SetHotSpot(handle, ref hotspot);
 }
Esempio n. 14
0
 internal static extern void StaticSprite2D_SetHotSpot(IntPtr handle, ref Urho.Vector2 hotspot);
Esempio n. 15
0
 /// <summary>
 /// Apply linear impulse to center.
 /// </summary>
 public void ApplyLinearImpulseToCenter(Urho.Vector2 impulse, bool wake)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_ApplyLinearImpulseToCenter(handle, ref impulse, wake);
 }
Esempio n. 16
0
 /// <summary>
 /// Set mass center.
 /// </summary>
 public void SetMassCenter(Urho.Vector2 center)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_SetMassCenter(handle, ref center);
 }
Esempio n. 17
0
 internal static extern void Sprite_SetPosition(IntPtr handle, ref Urho.Vector2 position);
Esempio n. 18
0
 internal static extern void RigidBody2D_SetLinearVelocity(IntPtr handle, ref Urho.Vector2 linearVelocity);
Esempio n. 19
0
 internal static extern void Sprite_SetScale(IntPtr handle, ref Urho.Vector2 scale);
Esempio n. 20
0
 /// <summary>
 /// Set linear velocity.
 /// </summary>
 public void SetLinearVelocity(Urho.Vector2 linearVelocity)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_SetLinearVelocity(handle, ref linearVelocity);
 }
Esempio n. 21
0
 internal static extern void ConstraintRope2D_SetOtherBodyAnchor(IntPtr handle, ref Urho.Vector2 anchor);
Esempio n. 22
0
 /// <summary>
 /// Apply force.
 /// </summary>
 public void ApplyForce(Urho.Vector2 force, Urho.Vector2 point, bool wake)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_ApplyForce(handle, ref force, ref point, wake);
 }
Esempio n. 23
0
 /// <summary>
 /// Set vertex 2.
 /// </summary>
 private void SetVertex2(Urho.Vector2 vertex)
 {
     Runtime.ValidateRefCounted(this);
     CollisionEdge2D_SetVertex2(handle, ref vertex);
 }
Esempio n. 24
0
 internal static extern void RigidBody2D_ApplyForceToCenter(IntPtr handle, ref Urho.Vector2 force, bool wake);
Esempio n. 25
0
 internal static extern void CollisionEdge2D_SetVertex1(IntPtr handle, ref Urho.Vector2 vertex);
Esempio n. 26
0
 /// <summary>
 /// Apply force to center.
 /// </summary>
 public void ApplyForceToCenter(Urho.Vector2 force, bool wake)
 {
     Runtime.ValidateRefCounted(this);
     RigidBody2D_ApplyForceToCenter(handle, ref force, wake);
 }
Esempio n. 27
0
 /// <summary>
 /// Set gravity.
 /// </summary>
 private void SetGravity(Urho.Vector2 gravity)
 {
     Runtime.ValidateRefCounted(this);
     PhysicsWorld2D_SetGravity(handle, ref gravity);
 }
Esempio n. 28
0
 internal static extern void RigidBody2D_ApplyLinearImpulseToCenter(IntPtr handle, ref Urho.Vector2 impulse, bool wake);
Esempio n. 29
0
 /// <summary>
 /// Return rigid body at point.
 /// </summary>
 public RigidBody2D GetRigidBody(Urho.Vector2 point, uint collisionMask)
 {
     Runtime.ValidateRefCounted(this);
     return(Runtime.LookupObject <RigidBody2D> (PhysicsWorld2D_GetRigidBody(handle, ref point, collisionMask)));
 }
Esempio n. 30
0
 /// <summary>
 /// Set linear offset.
 /// </summary>
 private void SetLinearOffset(Urho.Vector2 linearOffset)
 {
     Runtime.ValidateRefCounted(this);
     ConstraintMotor2D_SetLinearOffset(handle, ref linearOffset);
 }