[Implemented] 3D

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

[Implemented] 3D

Post by Comtois »

there is EntityX(#Entity) idem for Y and Z, but there is not
EntityAngleX(#Entity) idem for the angle Y and Z idem for the camera.

The reference mark for rotations is different from the reference mark
for the translations.
Example if I write RotateEntity(#Entity, 1,0, 0)
Entity turns on the y axis.There is only the axis of Z which is common for the translations and rotations.

It would be interesting to have an ordering of absolute rotation a
little as for displacement, there is a relative displacement, and an
absolute displacement
Exemple : RotateEntityY(#Entity, 90) place the entity with 90° on the Y axis.

Another order which would be interesting
MoveDirectionEntity(#Entity,2)
makes it possible to advance the entity of 2 units on plan X,Z according to the angle Y

Afflicted for the bad translation, I use Systran :)
Please correct my english
http://purebasic.developpez.com/
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

after some additional tests, I ended up including/understanding how
rotationEntity functions does it of it is a rotation compared to the
axes of the entity and not compared to the axes of the world 3d. Ok,
that should help me for the continuation to know exactly how this
instruction work :)
Post Reply