A sound object that lives inside a SSWorld
SSObjects have a set of spatial and dynamic properties, such as position, velocity, shape, etc., and they are also related to a specific sound source (a "mono track"). Currently, the sound is only managed through SpatialRender and Jack.
Interaction with the dynamic behavior of a SSObject can be handled in two ways: top-down, by assigning the object motion to a Motion instance, or bottom-up physical model, by applying forces.
This class is based on RedObject.
| world |
Reference to the SSWorld instance in which the object is going to exist |
| loc |
Initial position in m. Default to [0,0,0] |
| vel |
Initial velocity in m/s. Default to [0,0,0] |
| accel |
Initial acceleration in m/^2. Default to [0,0,0] |
| mass |
Mass of the object. Default to 1. NOTE: At the moment, the mass parameter has any effect in the physical model |
| size |
Object size. Default to 1. NOTE: At the moment, the size parameter has any effect in the physical model |
| shape |
|
| gravity |
|
| friction |
|
| name |
If |
| channel |
Jack channel number from where the object gets its sound. If |
Get the Jack channel associated with the object.
Set the Jack channel associated with the object.
| newChannel |
Channel number |
Get/set the object's name, as a Symbol
Get/set the object location in Cartesian coordinates
| newLoc |
|
| x |
if newLoc is |
| y |
if newLoc is |
| z |
if newLoc is |
Get/set the object location in Spherical coordinates
| newLocSph |
|
| rho |
if newLocSph is |
| azi |
if newLocSph is |
| ele |
if newLocSph is |
Get/set the object's shape
| newShape |
One of these symbols:
|
Get/set wether the object preserves its area when moving, for non-punctual shapes.
| bool |
Get/set the azimuth difference angle, for extended sources
Get/set the elevation difference angle, for extended sources
Get/set if the object is present (active) in the reference world
Remove this object from the reference world. Called internally by the SSWorld: -remove
Get/set whether the object is subject to gravity, as a Boolean
Get/set whether the object is subject to friction, as a Boolean
Get/set the object's velocity, as an Array or Cartesian
Add velocity to the existing one
| newVel |
|
Get/set the object's velocity, as a instance of Array or Spherical
Get/set the object's acceleration, as an Array or Cartesian
Get/set the object's acceleration, as a instance of Array or Spherical
Get the current object's motion
Assign one of the predefined motions to the object
| type |
One of the following symbols:
|
| ... args |
Required parameters for each of the motion types. See Motion for more information. |
Set object's velocity and acceleration vectors to 0.