public RigidBodyComponent SetOrientation(SWIGTYPE_p_Math__Matrix3 orientation) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetOrientation(swigCPtr, SWIGTYPE_p_Math__Matrix3.getCPtr(orientation)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) { throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public RigidBodyComponent ApplyImmediateImpulse(MochaVec3 impulse, MochaVec3 at) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyImmediateImpulse(swigCPtr, MochaVec3.getCPtr(impulse), MochaVec3.getCPtr(at)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) { throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public RigidBodyComponent ApplyAngularMasslessForce(MochaVec3 force, MochaVec3 at) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyAngularMasslessForce(swigCPtr, MochaVec3.getCPtr(force), MochaVec3.getCPtr(at)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) { throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public RigidBodyComponent SetPosition(MochaVec3 pos) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetPosition(swigCPtr, MochaVec3.getCPtr(pos)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) { throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public RigidBodyComponent SetPosition(MochaVec3 pos) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetPosition(swigCPtr, MochaVec3.getCPtr(pos)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public RigidBodyComponent SetOrientation(SWIGTYPE_p_Math__Matrix3 orientation) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetOrientation(swigCPtr, SWIGTYPE_p_Math__Matrix3.getCPtr(orientation)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public RigidBodyComponent SetHasGravity(bool hasGravity) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetHasGravity(swigCPtr, hasGravity), false); return ret; }
public RigidBodyComponent SetAwake(bool awake) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAwake(swigCPtr, awake), false); return ret; }
public RigidBodyComponent SetAllowRotation(bool allowRotation) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAllowRotation(swigCPtr, allowRotation), false); return ret; }
public RigidBodyComponent ApplyLinearImpulse(MochaVec3 impulse) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyLinearImpulse(swigCPtr, MochaVec3.getCPtr(impulse)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public RigidBodyComponent SetType(int type) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetType(swigCPtr, type), false); return(ret); }
public RigidBodyComponent SetHasGravity(bool hasGravity) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetHasGravity(swigCPtr, hasGravity), false); return(ret); }
public RigidBodyComponent SetAllowRotation(bool allowRotation) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAllowRotation(swigCPtr, allowRotation), false); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RigidBodyComponent obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public RigidBodyComponent SetType(int type) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetType(swigCPtr, type), false); return ret; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RigidBodyComponent obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public RigidBodyComponent SetAwake(bool awake) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAwake(swigCPtr, awake), false); return(ret); }
public RigidBodyComponent ApplyMasslessForce(MochaVec3 force, MochaVec3 at) { RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyMasslessForce(swigCPtr, MochaVec3.getCPtr(force), MochaVec3.getCPtr(at)), false); if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve(); return ret; }
void InitCar() { foundCar = true; carPhysics = rcCar.RequireComponent<CPhysics>(); carPhysics.mColliderType = 1; currYRotation = rcCar.transform.GetRotation().y; rcCarRigidCom = carPhysics.rigidCom; }