AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Sonstige Fragen zu Delphi Delphi Kennt hier Jemand die Function NewtoncreateCompoundCollision
Thema durchsuchen
Ansicht
Themen-Optionen

Kennt hier Jemand die Function NewtoncreateCompoundCollision

Ein Thema von Corpsman · begonnen am 12. Jun 2006 · letzter Beitrag vom 13. Jun 2006
Antwort Antwort
Benutzerbild von Corpsman
Corpsman

Registriert seit: 8. Nov 2005
Ort: nähe Stuttgart
981 Beiträge
 
Delphi XE2 Professional
 
#1

Re: Kennt hier Jemand die Function NewtoncreateCompoundColli

  Alt 12. Jun 2006, 15:42
Hat wohl doch noch was gefehlt

Die Nil Pointer bei

NewtonCreateBox sorgen dafür das wir 2 Boxen Haben die Genau übereinander sind.

Ändert man das aber in

Delphi-Quellcode:
  Matrix[0, 0] := 1;
  Matrix[0, 1] := 0;
  Matrix[0, 2] := 0;
  Matrix[0, 3] := 0;
  Matrix[1, 0] := 0;
  Matrix[1, 1] := 1;
  Matrix[1, 2] := 0;
  Matrix[1, 3] := 0;
  Matrix[2, 0] := 0;
  Matrix[2, 1] := 0;
  Matrix[2, 2] := 1;
  Matrix[2, 3] := 0;
  Matrix[3, 0] := 1;
  Matrix[3, 1] := 0;
  Matrix[3, 2] := 1;
  Matrix[3, 3] := 1;
  Collision1 := NewtonCreateBox(NewtonWorld, 1, 1, 1, @Matrix[0, 0]);
  Matrix[0, 0] := 1;
  Matrix[0, 1] := 0;
  Matrix[0, 2] := 0;
  Matrix[0, 3] := 0;
  Matrix[1, 0] := 0;
  Matrix[1, 1] := 1;
  Matrix[1, 2] := 0;
  Matrix[1, 3] := 0;
  Matrix[2, 0] := 0;
  Matrix[2, 1] := 0;
  Matrix[2, 2] := 1;
  Matrix[2, 3] := 0;
  Matrix[3, 0] := -1;
  Matrix[3, 1] := 0;
  Matrix[3, 2] := -1;
  Matrix[3, 3] := 1;
  Collision2 := NewtonCreateBox(NewtonWorld, 1, 1, 1, @Matrix[0, 0]);
So scheint es ein Anderes Object zu geben, die Frage ist nur was kommt da nun bei Raus, laut Renderfunction scheint es nun aber endlich zu functionieren.

THX to all
Uwe
My Sitewww.Corpsman.de

My marble madness clone Balanced ( ca. 70,0 mb ) aktuell ver 2.01
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:28 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz