//-------------------------------------------------------------------- public SimModel(GameModel model, float mass, SimObjectType simObjectType) : base(mass, simObjectType) { this.model = model; this.currPosition = model.Translate; this.prevPosition = currPosition; }
//----------------------------------------------------------------- public SimObject(float mass, SimObjectType simObjectType) { this.mass = mass; this.currPosition = Vector3.Zero; this.prevPosition = currPosition; this.currVelocity = Vector3.Zero; this.simObjectType = simObjectType; }
public SimObject(float mass, SimObjectType simObjectType) { this.mass = mass; this.currPosition = Vector2.Zero; this.prevPosition = currPosition; this.simObjectType = simObjectType; this.resultantForce = Vector2.Zero; }
//---------------------------------------------------------------------------------- public SimVertex(float mass, SimObjectType simObjectType, int vertexId, TexturedPrimitive primitive) : base(mass, simObjectType) { this.vertexId = vertexId; this.primitive = primitive; this.currPosition = primitive.GetVertexPosition(vertexId); this.prevPosition = currPosition; }
internal static extern HRESULT RequestDataOnSimObjectType(HANDLE hSimConnect, DWORD RequestID, DWORD DefineID, DWORD dwRadiusMeters, SimObjectType type);
private async void btnGeXpndrAsync_Click(object sender, EventArgs e) { Radios r = await SimObjectType <Radios> .RequestDataOnSimObjectType(); displayText(JsonConvert.SerializeObject(r.Transponder.ToString("X3"))); }
public unsafe SendRequestDataOnSimObjectType(uint requestId, uint defineId, uint radiusMeters, SimObjectType type) => (Send, RequestId, DefineId, RadiusMeters, Type) =
public SimMass(float mass, Vector2 position, SimObjectType simObjectType) : base(mass, simObjectType) { this.prevPosition = position; this.currPosition = position; }