| |||||||||
|
|
| |||||||
|
| ||||||||
| |||||||||
#include "vg.h" // Required for the standard Vega classes
void switchObvserver2Player( const int obsIdx, const int playerIdx ){ // ################################################################ // # Local Function // # // # This functions show how to make an vgObsert follow a vgPlayer // # // #############################################################
// // We need a pointer to the observer // vgObserver *obs = vgGetObserv(obsIdx)
// // Remove any Navigator association with the Observer // vgObservNav( obs, NULL );
// // Remove any MotionModel association with the Observer // vgObservMot( obs, NULL );
// // Attach the observer to the player and navigator // vgProp( obs, VGCOMMON_ENABLED, VG_ON );
// // The Observer needs to be Fixed Tethered state // vgProp( obs, VGOBS_TETHERSTATE, VGOBS_FIXED );
// // The Observer needs to be relative to a players coords // vgProp( obs, VGOBS_TETHERCOORD, VGOBS_TPLAYER );
// // We need the player for the navigator assume first player // vgPlayer *plyr = vgGetPlyr(playerIdx);
// // Associate the Player with the Observer // vgObservPlyr( obs, plyr );
} // switchObvserver2Player
| ||
© Copyright 2004 Gordon Tomlinson All Rights Reserved. All logos, trademarks and copyrights in this site are property of their respective owner. |