CameraAnchor
gamnit :: OffsetPoint3d :: defaultinit
gamnit :: OffsetPoint3d :: offset_x=
Difference on the X axisgamnit :: OffsetPoint3d :: offset_y=
Difference on the X axisgamnit :: OffsetPoint3d :: offset_z=
Difference on the X axisgamnit $ OffsetPoint3d :: SELF
Type of this instance, automatically specialized in every classgamnit $ OffsetPoint3d :: x=
gamnit $ OffsetPoint3d :: y=
gamnit $ OffsetPoint3d :: z=
serialization :: Serializable :: accept_inspect_serializer_core
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
geometry :: Boxed :: defaultinit
geometry :: Point3d :: defaultinit
geometry :: IPoint3d :: defaultinit
geometry :: Boxed3d :: defaultinit
geometry :: Point :: defaultinit
gamnit :: OffsetPoint3d :: defaultinit
core :: Object :: defaultinit
geometry :: IPoint :: defaultinit
geometry :: IPoint :: dist2_with_2d
geometry :: IPoint :: dist2_with_3d
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
geometry :: Boxed :: intersects
Doesself
intersect with other
?
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: Object :: native_class_name
The class name of the object in CString format.geometry :: Point3d :: needs_update
gamnit :: OffsetPoint3d :: offset_x=
Difference on the X axisgamnit :: OffsetPoint3d :: offset_y=
Difference on the X axisgamnit :: OffsetPoint3d :: offset_z=
Difference on the X axiscore :: Object :: output_class_name
Display class name on stdout (debug only).serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: serialize_to_or_delay
Accept references or force direct serialization (usingserialize_to
)
geometry :: Point3d :: sprites_add
geometry :: Point3d :: sprites_remove
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
# Position relative to another point or usually a `CameraAnchor`
private class OffsetPoint3d
super Point3d[Float]
autoinit ref, offset_x, offset_y, offset_z
# Reference point to which the offsets are applied
var ref: IPoint3d[Float]
# Difference on the X axis
var offset_x: Float
# Difference on the X axis
var offset_y: Float
# Difference on the X axis
var offset_z: Float
redef fun x do return ref.x + offset_x
redef fun y do return ref.y + offset_y
redef fun z do return ref.z + offset_z
redef fun x=(value) do if value != null then offset_x += value - x
redef fun y=(value) do if value != null then offset_y += value - y
redef fun z=(value) do if value != null then offset_z += value - z
redef fun offset(x, y, z) do return new OffsetPoint3d(self, x.to_f, y.to_f, z.to_f)
end
lib/gamnit/cameras.nit:302,1--329,3
redef class OffsetPoint3d
redef fun x=(v)
do
if isset _x and v != x then needs_update
super
end
redef fun y=(v)
do
if isset _y and v != y then needs_update
super
end
redef fun z=(v)
do
if isset _z and v != z then needs_update
super
end
end
lib/gamnit/flat/flat_core.nit:871,1--889,3