part 2 since i forgot to stage changes lol.

This commit is contained in:
Anemunt
2025-12-16 19:53:15 -05:00
parent 6ecf2a5106
commit ed390e56c3
7 changed files with 155 additions and 8 deletions

View File

@@ -92,6 +92,7 @@ private:
bool isPlaying = false;
bool isPaused = false;
bool showViewOutput = true;
bool showSceneGizmos = true;
bool showGameViewport = true;
int previewCameraId = -1;
bool gameViewCursorLocked = false;
@@ -221,4 +222,10 @@ public:
bool setRigidbodyVelocityFromScript(int id, const glm::vec3& velocity);
bool getRigidbodyVelocityFromScript(int id, glm::vec3& outVelocity);
bool teleportPhysicsActorFromScript(int id, const glm::vec3& position, const glm::vec3& rotationDeg);
// Audio control exposed to scripts
bool playAudioFromScript(int id);
bool stopAudioFromScript(int id);
bool setAudioLoopFromScript(int id, bool loop);
bool setAudioVolumeFromScript(int id, float volume);
bool setAudioClipFromScript(int id, const std::string& path);
};