mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 23:27:45 +00:00
Set rotation properly for instances
This commit is contained in:
parent
714e024128
commit
e4e7f4533b
1 changed files with 2 additions and 2 deletions
|
@ -469,12 +469,12 @@ void Sapphire::InstanceContent::onBeforePlayerZoneIn( Sapphire::Entity::Player&
|
|||
|
||||
if( m_pEntranceEObj != nullptr )
|
||||
{
|
||||
player.setRot( PI );
|
||||
player.setRot( m_pEntranceEObj->getRot() );
|
||||
player.setPos( m_pEntranceEObj->getPos() );
|
||||
}
|
||||
else if( rect )
|
||||
{
|
||||
player.setRot( PI );
|
||||
player.setRot( Util::eulerToDirection( { rect->header.transform.rotation.x, rect->header.transform.rotation.y, rect->header.transform.rotation.z } ) );
|
||||
player.setPos( { rect->header.transform.translation.x, rect->header.transform.translation.y, rect->header.transform.translation.z } );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue