feat: expose setLightDirection and setLightPosition

This commit is contained in:
Nick Fisher
2024-09-05 22:18:54 +08:00
parent c93cc296a0
commit d17cce2ca4
8 changed files with 122 additions and 19 deletions
@@ -570,10 +570,20 @@ abstract class ThermionViewer {
Future transformToUnitCube(ThermionEntity entity);
///
/// Directly sets the world space position for [entity] to the given coordinates, skipping all collision detection.
/// Directly sets the world space position for [entity] to the given coordinates.
///
Future setPosition(ThermionEntity entity, double x, double y, double z);
///
/// Set the world space position for [lightEntity] to the given coordinates.
///
Future setLightPosition(ThermionEntity lightEntity, double x, double y, double z);
///
/// Sets the world space direction for [lightEntity] to the given vector.
///
Future setLightDirection(ThermionEntity lightEntity, Vector3 direction);
///
/// Directly sets the scale for [entity], skipping all collision detection.
///