Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
SharedPhysics Struct Reference

#include <sharedobject.hpp>

Public Member Functions

glm::vec3 getCenterPosition () const
 Calculates and returns the center position of this object. More...
 
 DEF_SERIALIZE (Archive &ar, const unsigned int version)
 

Data Fields

glm::vec3 corner
 3-D vector that denotes this object's bottom left corner (min x and z coordinates). More...
 
glm::vec3 facing
 3-D vector that denotes this object's facing direction. More...
 
glm::vec3 dimensions
 3-D vector that defines a rectangular prism which outlines the object that contains this SharedPhysic struct. More...
 

Member Function Documentation

◆ DEF_SERIALIZE()

SharedPhysics::DEF_SERIALIZE ( Archive &  ar,
const unsigned int  version 
)
inline

◆ getCenterPosition()

glm::vec3 SharedPhysics::getCenterPosition ( ) const

Calculates and returns the center position of this object.

Returns
glm::vec3 that denotes the center position of this object.

Field Documentation

◆ corner

glm::vec3 SharedPhysics::corner

3-D vector that denotes this object's bottom left corner (min x and z coordinates).

◆ dimensions

glm::vec3 SharedPhysics::dimensions

3-D vector that defines a rectangular prism which outlines the object that contains this SharedPhysic struct.

Note
This field dictates the dimensions of the object for rendering in the client.

◆ facing

glm::vec3 SharedPhysics::facing

3-D vector that denotes this object's facing direction.


The documentation for this struct was generated from the following files: