jPCT-AE - a 3d engine for Android > Support

How to convert simplevector to Vector3f?

(1/1)

jumong:
hi,
How to convert simplevector to Vector3f?
What different of simplevector and vector3f?
help

EgonOlsen:
What is Vector3f?

jumong:
vector3f is used in DynamicsWorld

EgonOlsen:
Well...i assume that you are talking about the javax.vecmath Vector3f then? In that case, the actual conversion is sv.x=v3f.x, sv.y=v3f.y and sv.z=v3f.z. However, coordinate systems of the actual vectors may differ (http://www.jpct.net/wiki/index.php/Coordinate_system). The most usual form is that the coordinate system of jPCT is rotated 90° around the x-axis compared to others. If that is the case, just negate y and z to convert between the two.

jumong:
thank you very much!!!

Navigation

[0] Message Index

Go to full version