Pass rotation and scale when building runtime scene collections
This commit is contained in:
@@ -1737,6 +1737,7 @@ function buildRuntimeSceneCollections(
|
|||||||
authoredPosition: cloneVec3(entity.position),
|
authoredPosition: cloneVec3(entity.position),
|
||||||
yawDegrees: entity.yawDegrees,
|
yawDegrees: entity.yawDegrees,
|
||||||
authoredYawDegrees: entity.yawDegrees,
|
authoredYawDegrees: entity.yawDegrees,
|
||||||
|
scale: cloneVec3(entity.scale),
|
||||||
modelAssetId: entity.modelAssetId,
|
modelAssetId: entity.modelAssetId,
|
||||||
dialogues: entity.dialogues.map(cloneProjectDialogue),
|
dialogues: entity.dialogues.map(cloneProjectDialogue),
|
||||||
defaultDialogueId: entity.defaultDialogueId,
|
defaultDialogueId: entity.defaultDialogueId,
|
||||||
@@ -1764,6 +1765,7 @@ function buildRuntimeSceneCollections(
|
|||||||
runtimeEntities.triggerVolumes.push({
|
runtimeEntities.triggerVolumes.push({
|
||||||
entityId: entity.id,
|
entityId: entity.id,
|
||||||
position: cloneVec3(entity.position),
|
position: cloneVec3(entity.position),
|
||||||
|
rotationDegrees: cloneVec3(entity.rotationDegrees),
|
||||||
size: cloneVec3(entity.size),
|
size: cloneVec3(entity.size),
|
||||||
// Derive from links so flags are always correct regardless of stored entity state
|
// Derive from links so flags are always correct regardless of stored entity state
|
||||||
triggerOnEnter: Object.values(document.interactionLinks).some(
|
triggerOnEnter: Object.values(document.interactionLinks).some(
|
||||||
|
|||||||
Reference in New Issue
Block a user