|
|
Re: rotating sprite
[Re: Grandma]
#400555
05/03/12 15:14
05/03/12 15:14
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Hi, is it possible to rotate a sprite with one side as rotation-axis? Yes you can do that - what Uhrwerk describes is rotation around the local axes. You can rotate a sprite by one of its sides, if you rotate the offset of the entity origin to the side origin, rotate it, and add the rotated offset to the original side origin - this is the new sprite position. The angle is the same as the rotation angle.
|
|
|
Re: rotating sprite
[Re: HeelX]
#400636
05/05/12 09:37
05/05/12 09:37
|
Joined: Feb 2010
Posts: 40 Germany
Grandma
OP
Newbie
|
OP
Newbie
Joined: Feb 2010
Posts: 40
Germany
|
Thanks you both,
danke euch beiden! :-) Aber selbst mit Wörterbuch verstehe ich nicht ganz, mit welcher Methode du HeelX vorgehst: Was ich glaube zu verstehen: Ich muss den Sprite-Origin auf die Seite setzen (durch Verschiebung des Sprits in z.B. MED?)oder tatsächlich per skript? (Was mir bei deiner Beschreibung mehr Sinn macht) ??
Last edited by Grandma; 05/05/12 09:42.
|
|
|
Re: rotating sprite
[Re: Grandma]
#400647
05/05/12 14:47
05/05/12 14:47
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Entschuldigung, ich glaube ich hab Dein Problem jetzt erst richtig verstanden. Mit Seite meintest Du eine der vier Seiten des Rechtecks und nicht eine der beiden Flächen, richtig?
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: rotating sprite
[Re: Uhrwerk]
#400689
05/06/12 10:54
05/06/12 10:54
|
Joined: Feb 2010
Posts: 40 Germany
Grandma
OP
Newbie
|
OP
Newbie
Joined: Feb 2010
Posts: 40
Germany
|
Entschuldigung, ich glaube ich hab Dein Problem jetzt erst richtig verstanden. Mit Seite meintest Du eine der vier Seiten des Rechtecks und nicht eine der beiden Flächen, richtig? Stimmt genau..das lag aber mit Sicherheit an meiner Unfähigkeit, das Problem in Englisch richtig auszudrücken  ..bin mir aber nun sicher, dass es nur über skript funktioniert..(wenn überhaupt...)
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|