A Camera object.
|
|
|
|
boolean
|
|
matrix (4x4 list)
|
|
matrix (4x4 list)
|
|
|
setOnTop()
Set this cameras viewport ontop of all other viewport. |
|
|
|
setViewport(left,
bottom,
right,
top)
Sets the region of this viewport on the screen in pixels. |
|
|
list [x, y]
|
|
3d vector
|
getScreenVect(x,
y)
Gets the vector from the camera position in the screen coordinate
direction. |
|
|
KX_GameObject
|
getScreenRay(x,
y,
dist,
property)
Look towards a screen coordinate (x,y) and find first object hit
within dist that matches prop. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list [vx, vy, vz]
|
|
3d vector.
|
|
float
|
|
list [vx, vy, vz]
|
|
|
getPhysicsId()
Returns the user data object associated with this game object's
physics controller.
(Inherited from GameTypes.KX_GameObject) |
|
|
list [fx, fy, fz]
|
|
3-tuple (float, 3-tuple (x,y,z), 3-tuple (x,y,z))
|
|
list [vx, vy, vz]
|
|
bool
|
|
3-tuple (KX_GameObject, 3-tuple (x,y,z), 3-tuple (nx,ny,nz))
or 4-tuple (KX_GameObject, 3-tuple (x,y,z), 3-tuple (nx,ny,nz),
KX_PolyProxy)
|
rayCast(objto,
objfrom,
dist,
prop,
face,
xray,
poly)
Look from a point/object to another point/object and find first
object hit within dist that matches prop.
(Inherited from GameTypes.KX_GameObject) |
|
|
KX_GameObject
|
rayCastTo(other,
dist,
prop)
Look towards another point/object and find first object hit within
dist that matches prop.
(Inherited from GameTypes.KX_GameObject) |
|
|
boolean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
matrix (4x4 list)
|
|
|
|
|
enableViewport(viewport)
Use this camera to draw a viewport on the screen (for split screen
games or overlay scenes). |
|
|
CListValue
of KX_GameObject
|
|
CListValue
of KX_GameObject
|
|
float
|
|
KX_MeshProxy
|
|
string
|
|
3x3 rotation matrix
|
|
KX_GameObject
|
|
list [x, y, z]
|
|
int
|
|
boolean
|
|
|
|
|
|
|
|
|
|
|
get(key,
default=None)
Return the value matching key, or the default value if its not found.
(Inherited from GameTypes.KX_GameObject) |
|
|
list
|
|
boolean
|
|
list
|
actuators
a list of SCA_IActuator with string/index lookups and iterator
support.
(Inherited from GameTypes.KX_GameObject)
|
4x4 Matrix [[float]]
|
camera_to_world
This camera's camera to world transform.
|
CListValue
of KX_GameObject's
|
children
direct children of this object, (read-only).
(Inherited from GameTypes.KX_GameObject)
|
CListValue
of KX_GameObject's
|
childrenRecursive
all children of this object including childrens children,
(read-only).
(Inherited from GameTypes.KX_GameObject)
|
list of SCA_ISensor.
|
controllers
a sequence of SCA_IController objects with string/index lookups
and iterator support.
(Inherited from GameTypes.KX_GameObject)
|
float
|
far
The camera's far clip distance.
|
boolean
|
frustum_culling
True if this camera is frustum culling.
|
bool
|
invalid
Test if the object has been freed by the game engine and is no longer
valid.
(Inherited from GameTypes.PyObjectPlus)
|
float
|
lens
The camera's lens value.
|
float
|
linVelocityMax
Clamp the maximum linear velocity to prevent objects moving beyond a
set speed.
(Inherited from GameTypes.KX_GameObject)
|
float
|
linVelocityMin
Enforces the object keeps moving at a minimum velocity.
(Inherited from GameTypes.KX_GameObject)
|
list [ix, iy, iz]
|
localInertia
the object's inertia vector in local coordinates.
(Inherited from GameTypes.KX_GameObject)
|
3x3 Matrix [[float]]
|
localOrientation
The object's local orientation.
(Inherited from GameTypes.KX_GameObject)
|
list [x, y, z]
|
localPosition
The object's local position.
(Inherited from GameTypes.KX_GameObject)
|
list [sx, sy, sz]
|
localScale
The object's local scaling factor.
(Inherited from GameTypes.KX_GameObject)
|
float
|
mass
The object's mass
(Inherited from GameTypes.KX_GameObject)
|
list of KX_MeshProxy
|
meshes
a list meshes for this object.
(Inherited from GameTypes.KX_GameObject)
|
4x4 Matrix [[float]]
|
modelview_matrix
This camera's 4x4 model view matrix.
|
string
|
name
The name of this CValue derived object (read-only).
(Inherited from GameTypes.KX_GameObject)
|
float
|
near
The camera's near clip distance.
|
boolean
|
occlusion
occlusion capability flag.
(Inherited from GameTypes.KX_GameObject)
|
3x3 Matrix [[float]] On write: local orientation, on read: world
orientation
|
orientation
The object's orientation.
(Inherited from GameTypes.KX_GameObject)
|
KX_GameObject or None
|
parent
The object's parent object.
(Inherited from GameTypes.KX_GameObject)
|
boolean
|
perspective
True if this camera has a perspective transform, False for an
orthographic projection.
|
list [x, y, z] On write: local position, on read: world position
|
position
The object's position.
(Inherited from GameTypes.KX_GameObject)
|
4x4 Matrix [[float]]
|
projection_matrix
This camera's 4x4 projection matrix.
|
list [sx, sy, sz] On write: local scaling, on read: world scaling
|
scaling
The object's scaling factor.
(Inherited from GameTypes.KX_GameObject)
|
list
|
sensors
a sequence of SCA_ISensor objects with string/index lookups and
iterator support.
(Inherited from GameTypes.KX_GameObject)
|
int
|
state
the game object's state bitmask, using the first 30 bits, one bit
must always be set.
(Inherited from GameTypes.KX_GameObject)
|
float
|
timeOffset
adjust the slowparent delay at runtime.
(Inherited from GameTypes.KX_GameObject)
|
bool
|
useViewport
True when the camera is used as a viewport, set True to enable a
viewport for this camera.
|
boolean
|
visible
visibility flag.
(Inherited from GameTypes.KX_GameObject)
|
3x3 Matrix [[float]]
|
worldOrientation
The object's world orientation.
(Inherited from GameTypes.KX_GameObject)
|
list [x, y, z]
|
worldPosition
The object's world position.
(Inherited from GameTypes.KX_GameObject)
|
list [sx, sy, sz]
|
worldScale
The object's world scaling factor.
(Inherited from GameTypes.KX_GameObject)
|
4x4 Matrix [[float]]
|
world_to_camera
This camera's world to camera transform.
|
|
INSIDE
see sphereInsideFrustum() and boxInsideFrustum()
|
|
INTERSECT
see sphereInsideFrustum() and boxInsideFrustum()
|
|
OUTSIDE
see sphereInsideFrustum() and boxInsideFrustum()
|
dict
|
attrDict
get the objects internal python attribute dictionary for direct
(faster) access.
(Inherited from GameTypes.KX_GameObject)
|