Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, Petra, flink), 738 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Correction: PH_WHEEL #15485
05/01/03 10:26
05/01/03 10:26

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Some corrections to the manual concerning PH_WHEEL:
- axis 1 is specified relative to the first entity's frame
- axis 2 is specified relative to the second entity's frame
- only axis 1 can have a limit set on its turning range

What this means is that you should model your tires in the same direction that your car frame has been modeled. For setting up the constraint use the illustration provided in the manual with axis 1 pointing up. Ignore the angle limit for axis 2. Here's a sample:

code:
FR_wheel_ID=phcon_add(PH_WHEEL,car_frame, wheel);
phcon_setparams1(FR_wheel_ID,wheel.x,vector(0,0,1),vector(0,1,0));
phcon_setparams2(FR_wheel_ID,vector(-40,40,0),nullvector,nullvector);

This expects the wheel's axle to be aligned with the y axis and allows a steering angle of +/-40 degrees.

Re: Correction: PH_WHEEL #15486
05/03/03 07:28
05/03/03 07:28
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
Marco, please, can you modify this with the good informations ? (for a very good french's manual) Thanks Alain
quote:
PH_WHEEL
Type:

Description : Entities are allowed to rotate along the slider axis and move along the slider axis. Other movement is blocked.
Parameter 1 : Anchor point
Parameter 2 : Wheel axis 1, e.g. (0,0,1)
Parameter 3: Wheel axis 2, e.g. (1,0,0)
Parameter 4 : Allowed angles around axis1,e.g. (-45, 90, 0) sets the lower limit to -45 degrees and the upper limit around the axis to +90 degrees. Use (-360, 360, 0) to remove all limits.
Parameter 5 : Allowed angles around axis2, e.g. (-45, 90, 0) sets the lower limit to -45 degrees and the upper limit around the axis to +90 degrees. Use (-360, 360, 0) to remove all limits.
Parameter 6 : nullvector or spring-damper constants e.g.( 0.9, 0.001,0)
Motor 1 : Set desired angular velocity around axis2 and the maximum torque allowed to achieve this velocity, e.g. (10, 50,0) will set a desired angular velocity of 10 Hz and a maximum torque of 50,000 Nm



Re: Correction: PH_WHEEL #15487
05/03/03 04:18
05/03/03 04:18

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



quote:
PH_WHEEL
Type:

Description : Entities are allowed to rotate around axis 1 and axis 2. Use this constraint for setting up wheel-like behavior instead of using two separate PH_HINGEs. For a car, axis 1 is the steering axis (left/right), while axis 2 is required for forward/backward movement. Only axis 1 can have angle limits and can have its orientation queried (phcon_getposition).

Parameter 1 : Anchor point
Parameter 2 : Wheel axis 1 relative to first entity´s orientation, e.g. (0,0,1)
Parameter 3 : Wheel axis 2 relative to second entity´s orientation, e.g. (1,0,0)

Parameter 4 : Allowed angles around axis1, e.g. (-45, 90, 0) sets the lower limit to -45 degrees and the upper limit around the axis to +90 degrees. Use (-360, 360, 0) to remove all limits.
Parameter 5 : nullvector
Parameter 6 : nullvector or spring-damper constants e.g.( 0.9, 0.001,0)

Motor 1 : Set desired angular velocity around axis 1 and the maximum torque allowed to achieve this velocity, e.g. (10, 50,0) will set a desired angular velocity of 10 Hz and a maximum torque of 50,000 Nm
Motor 2 : Set desired angular velocity around axis 2 and the maximum torque allowed to achieve this velocity, e.g. (10, 50,0) will set a desired angular velocity of 10 Hz and a maximum torque of 50,000 Nm



Re: Correction: PH_WHEEL #15488
05/03/03 04:58
05/03/03 04:58
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
Thank's [Smile]


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1