mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 00:03:16 +02:00
more conflict resolutions for broken build after pull
This commit is contained in:
parent
861c8e76ee
commit
288a259ac1
2 changed files with 2 additions and 38 deletions
|
@ -1169,42 +1169,6 @@ void Head::renderBody() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Transmit data to agents requesting it
|
||||
// called on me just prior to sending data to others (continuasly called)
|
||||
int Head::getBroadcastData(char* data) {
|
||||
// Copy data for transmission to the buffer, return length of data
|
||||
sprintf(data, "H%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",
|
||||
getRenderPitch() + Pitch, -getRenderYaw() + 180 -Yaw, Roll,
|
||||
//avatar.yaw, avatar.pitch, avatar.roll,
|
||||
bodyPosition.x + leanSideways, bodyPosition.y, bodyPosition.z + leanForward,
|
||||
loudness, averageLoudness,
|
||||
//hand->getPos().x, hand->getPos().y, hand->getPos().z); //previous to Ventrella change
|
||||
bone[ AVATAR_BONE_RIGHT_HAND ].position.x,
|
||||
bone[ AVATAR_BONE_RIGHT_HAND ].position.y,
|
||||
bone[ AVATAR_BONE_RIGHT_HAND ].position.z );
|
||||
return strlen(data);
|
||||
}
|
||||
|
||||
|
||||
//called on the other agents - assigns it to my views of the others
|
||||
void Head::parseData(void *data, int size) {
|
||||
sscanf
|
||||
(
|
||||
(char *)data, "H%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",
|
||||
&Pitch, &Yaw, &Roll,
|
||||
//&avatar.yaw, &avatar.pitch, &avatar.roll,
|
||||
&bodyPosition.x, &bodyPosition.y, &bodyPosition.z,
|
||||
&loudness, &averageLoudness,
|
||||
&bone[ AVATAR_BONE_RIGHT_HAND ].position.x,
|
||||
&bone[ AVATAR_BONE_RIGHT_HAND ].position.y,
|
||||
&bone[ AVATAR_BONE_RIGHT_HAND ].position.z
|
||||
);
|
||||
|
||||
handBeingMoved = true;
|
||||
}
|
||||
|
||||
void Head::SetNewHeadTarget(float pitch, float yaw) {
|
||||
PitchTarget = pitch;
|
||||
YawTarget = yaw;
|
||||
|
|
|
@ -696,7 +696,7 @@ void display(void)
|
|||
//-----------------------------------------------
|
||||
// set the camera to looking at my own face
|
||||
//-----------------------------------------------
|
||||
myCamera.setTargetPosition ( myAvatar.getPos() );
|
||||
myCamera.setTargetPosition ( myAvatar.getBodyPosition() );
|
||||
myCamera.setYaw ( - myAvatar.getBodyYaw() );
|
||||
myCamera.setPitch ( 0.0 );
|
||||
myCamera.setRoll ( 0.0 );
|
||||
|
@ -708,7 +708,7 @@ void display(void)
|
|||
//----------------------------------------------------
|
||||
// set the camera to third-person view behind my av
|
||||
//----------------------------------------------------
|
||||
myCamera.setTargetPosition ( myAvatar.getPos() );
|
||||
myCamera.setTargetPosition ( myAvatar.getBodyPosition() );
|
||||
myCamera.setYaw ( 180.0 - myAvatar.getBodyYaw() );
|
||||
myCamera.setPitch ( 10.0 );
|
||||
myCamera.setRoll ( 0.0 );
|
||||
|
|
Loading…
Reference in a new issue