![]() |
3DRadSpace
v1.0.0a
Scripting documentation
|
Class for drawing a 3D mesh. More...
Public Member Functions | |
Skinmesh (string name, bool active, string resource, Vector3 position=default, Vector3 rotation=default, Vector3 scale=default, bool fog_affected=true, BoundingBox box=default, BoundingSphere sphere=default) | |
Creates a new Skinmesh object More... | |
Skinmesh () | |
Empty Skinmesh constructor; More... | |
override void | Load (ContentManager content) |
Loads the model. Uses Monogame's content pipeline. More... | |
override void | Draw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Draws the mesh. More... | |
override void | EditorDraw (SpriteBatch spriteBatch, Matrix? view, Matrix? projection) |
Draws the mesh in the editor. The only difference from Draw() is the missing condition. More... | |
![]() | |
GameObject () | |
Default constructor. More... | |
void | Enable () |
Enables object. More... | |
void | Disable () |
Disables object. More... | |
void | Toggle () |
Switches object on/off state. More... | |
void | Show () |
Shows the object. More... | |
void | Hide () |
Hides the object. More... | |
virtual void | Update (MouseState mouse, KeyboardState keyboard, GameTime time) |
Object update logic More... | |
virtual void | Trigger () |
This is specific to objects like ExitFade, NetServer,etc More... | |
override bool | Equals (object obj) |
Determines whether the specified object is equal to the current object. More... | |
override int | GetHashCode () |
Returns the hash code calculated from a string representing the data inside the object. More... | |
override string | ToString () |
Returns the object's name More... | |
void | RunOnce () |
Runs the object one Update loop. If used on a active object it will be stopped. More... | |
Properties | |
Model | Model [get] |
The Model itself. More... | |
Vector3 | FogColor [get, set] |
Fog effect color. From IEffectFog. More... | |
bool | FogEnabled [get, set] |
Checks if the Skinmesh allows fogs. More... | |
float | FogEnd [get, set] |
Fog end distance. More... | |
float | FogStart [get, set] |
Fog start distance. More... | |
bool | FogExists = false [get, set] |
Determines if fog is defined More... | |
Vector3 | Scale [get, set] |
Model scale. Default is (1,1,1). More... | |
BoundingBox | BoundingBox [get, set] |
BoundingSphere | BoundingSphere [get, set] |
Custom user defined Bounding Sphere. More... | |
![]() | |
string | Name [get, set] |
Object Name. Used as a string identifier. More... | |
object | Tag [get, set] |
Tag object. More... | |
bool | Enabled [get, set] |
Checks if object is enabled. More... | |
bool | Hidden [get, set] |
Checks if object is being drawn. More... | |
List< ObjectBehiavour > | Behiavours [get, set] |
Relation with other objects More... | |
Quaternion | RotationQuaternion [get] |
Rotation in a Quaterion system. More... | |
string | Resource [get, set] |
Resource file More... | |
Additional Inherited Members | |
![]() | |
static implicit | operator bool (GameObject o) |
Checks if the object exists. Same as GameObject != null. More... | |
static bool | operator== (GameObject a, GameObject b) |
Checks if two GameObjects are equal. More... | |
static bool | operator!= (GameObject a, GameObject b) |
The opposite of the equality operator. More... | |
![]() | |
Vector3 | Position |
Object position More... | |
Vector3 | Rotation |
Rotation in a Euler angles system. More... | |
List< int > | SelectedObjects |
Used for editor. More... | |
![]() | |
onDraw | OnDraw |
Called when object is being drawn on frame. More... | |
onUpdate | OnUpdate |
Called when object is being updated on the update logic loop. More... | |
onObjectDestroy | OnRemoval |
Called when object is being deleted. More... | |
onObjectLoad | OnObjectLoad |
Called when a object resource is being loaded. More... | |
Class for drawing a 3D mesh.
_3DRadSpaceDll.Skinmesh.Skinmesh | ( | string | name, |
bool | active, | ||
string | resource, | ||
Vector3 | position = default , |
||
Vector3 | rotation = default , |
||
Vector3 | scale = default , |
||
bool | fog_affected = true , |
||
BoundingBox | box = default , |
||
BoundingSphere | sphere = default |
||
) |
Creates a new Skinmesh object
name | Object's name. |
active | Checks if the skinmesh will get drawn. |
resource | Resource name, from the 'root'/Content/ without the xnb extension. |
position | Object position |
rotation | Object rotation in Euler Angles measured in radians. |
scale | Object scale. (1,1,1) is default. |
fog_affected | Allows or not fogs. |
box | Bounding box for intersections and collisions. |
sphere | User-defined bounding sphere for intersections and collisions. |
_3DRadSpaceDll.Skinmesh.Skinmesh | ( | ) |
Empty Skinmesh constructor;
|
virtual |
Draws the mesh.
spriteBatch | Not used. |
view | Necessary for model drawing. |
projection | Necessary for model drawing. |
Reimplemented from _3DRadSpaceDll.GameObject.
|
virtual |
Draws the mesh in the editor. The only difference from Draw() is the missing condition.
spriteBatch | Not used. |
view | View Matrix. |
projection | Projection Matrix |
Reimplemented from _3DRadSpaceDll.GameObject.
|
virtual |
Loads the model. Uses Monogame's content pipeline.
content | ContentManager from the game instance. |
Reimplemented from _3DRadSpaceDll.GameObject.
|
getset |
Bounding Box allowing basic hitbox/collision detection.
Note: Please note that this object doesn't use physics
|
getset |
Custom user defined Bounding Sphere.
|
getset |
Fog effect color. From IEffectFog.
|
getset |
Checks if the Skinmesh allows fogs.
|
getset |
Fog end distance.
|
getset |
Determines if fog is defined
|
getset |
Fog start distance.
|
get |
The Model itself.
|
getset |
Model scale. Default is (1,1,1).