Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Foundation.js
Context not available. | |||||
// Initially hide the preview underground | // Initially hide the preview underground | ||||
let cmpPreviewPosition = Engine.QueryInterface(this.previewEntity, IID_Position); | let cmpPreviewPosition = Engine.QueryInterface(this.previewEntity, IID_Position); | ||||
let cmpFoundationPosition = Engine.QueryInterface(this.entity, IID_Position); | let cmpFoundationPosition = Engine.QueryInterface(this.entity, IID_Position); | ||||
if (cmpPreviewPosition && cmpFoundationPosition) | if (cmpPreviewPosition && cmpFoundationPosition && cmpPreviewPosition.IsInWorld()) | ||||
{ | { | ||||
let rot = cmpFoundationPosition.GetRotation(); | let rot = cmpFoundationPosition.GetRotation(); | ||||
cmpPreviewPosition.SetYRotation(rot.y); | cmpPreviewPosition.SetYRotation(rot.y); | ||||
Context not available. |
Wildfire Games · Phabricator