The Basic Spatial is simply used to manage the position, size, rotation and velocity of an entity. The
You can select a renderer to be controlled, define a type tag and change all the position properties from this panel.
- Position - the 2D coordinate position in space.
- Size - the width and height of the object. Changing this property will only change the size of the directly controlled renderer. Not secondary linked renderers
- Linear Velocity - the speed at which this object should move in the X and Y direction. Because a basic spatial does not have any physics or friction applied to it the object will continously scroll until this value is manually changed to 0.
- Angular Velocity - the speed at which this object should rotate. Because a basic spatial does not have any physics or friction applied to it the object will continously scroll until this value is manually changed to 0.
- Rotation - the angle to rotate this object to.
Auto Renderer Selection
Whenever you add a spatial to an entity that already has a renderer it will attempt to attach itself to any renderer that is not currently tied to another spatial. You can manually change which spatial controls which renderer by selecting the controlled spatial from the spatial's properties. Keep in mind that you can have multiple renderers tied to one spatial but only the renderer that is controlled by the spatial gets its size and position changed. Secondary renderers only get their position and rotation property updated.
Defining Object Types
Every spatial in GameBuilder Studio has a property to define tags or object types that describe what type of object a spatial is. You can create these object types globally via the settings manager.