Thread

problem with AW_MY_PITCH attribute (Sdk)

problem with AW_MY_PITCH attribute // Sdk

1  |  

neophile

Jul 8, 2004, 3:26pm
Hi, i'm making a train-bot in C with Dev-Cpp. My problem is i ca'nt seem
to pitch the bot with the AW_MY_PITCH attribute.
The bot is moving accordingly to all other parameters i give it
(AW_MY_X, etc).
Here is the fonction i'm trying to use to refresh the bot's position 4
times per second:

> void refresh(void){
> aw_int_set (AW_MY_X, X);
> aw_int_set (AW_MY_Z, Z);
> aw_int_set (AW_MY_Y, Y);
> aw_int_set (AW_MY_YAW, YAW);
> aw_int_set (AW_MY_PITCH, pitch);
> aw_int_set (AW_MY_GESTURE, gest);
> aw_state_change ();
> }

I have been confirmed this should work, as it does in other languages,
like Delphi..
Any help or comment would be aprreciated.

strike rapier

Jul 8, 2004, 5:11pm
This is an absolute b*****d of a bugfinder if you dont know what your after.

the avatar pitch is only displayed when AW_MY_STATE is set to FLY (2), the
default is Walk (1) hence it will not show up. Use the following:

void refresh( void ){
aw_int_set (AW_MY_X, X);
aw_int_set (AW_MY_Z, Z);
aw_int_set (AW_MY_Y, Y);
aw_int_set (AW_MY_YAW, YAW);
aw_int_set (AW_MY_PITCH, pitch);
aw_int_set (AW_MY_GESTURE, gest);
aw_int_set (AW_MY_STATE, 2);
aw_state_change();
}

- Mark R


[View Quote]

neophile

Jul 9, 2004, 9:14pm
ok, that seems work correctly now, thank again for your help.

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn