chore(scripts): rename script API to GetComponent/TryGetComponent; misc

Clearer accessor naming on ScriptBehavior (Get -> GetComponent,
TryGet -> TryGetComponent), WASDMove follows. Teleport marked const
(JPH Ref does not propagate constness). Spinner: auto-rotation
disabled for the moment, registration switched from the registration
macro to an explicit lambda to verify the mechanism.
This commit is contained in:
2026-10-04 00:33:47 +08:00
parent 134812dae3
commit 74a2044441
5 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ namespace Engine {
static_cast<f32>(p.GetZ())};
}
void CharacterController::Teleport(const glm::vec3 &position) {
void CharacterController::Teleport(const glm::vec3 &position) const {
m_Character->SetPosition(
JPH::RVec3(position.x, position.y, position.z));
}