buoyancy physics objects can generate water ripples; character movement improvements; force return to editor on lua error;

This commit is contained in:
Turánszki János
2025-02-11 07:58:54 +01:00
parent c6ca5ca46e
commit 95b1720db3
15 changed files with 151 additions and 50 deletions
-7
View File
@@ -2676,13 +2676,6 @@ namespace wi::scene
}
void CharacterComponent::Turn(const XMFLOAT3& direction)
{
XMVECTOR F = XMLoadFloat3(&facing);
float dot = XMVectorGetX(XMVector3Dot(F, XMLoadFloat3(&direction)));
if (dot < 0)
{
// help with turning around 180 degrees:
XMStoreFloat3(&facing, XMVector3TransformNormal(F, XMMatrixRotationY(XM_PI * 0.05f)));
}
facing_next = direction;
}
void CharacterComponent::Lean(float amount)