summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-05 20:33:23 -0500
committerXANTRONIX Development2022-03-05 20:33:23 -0500
commit2894d2f9e4e2a646116836aa2b471c33fbba85f5 (patch)
tree97612113c55f704cf0f3ea3129cc523a49b0f0f2 /include/xas
parent769f1c6c4087d53a2b400511baac77b510f16798 (diff)
downloadxas-2894d2f9e4e2a646116836aa2b471c33fbba85f5.tar.gz
xas-2894d2f9e4e2a646116836aa2b471c33fbba85f5.tar.bz2
xas-2894d2f9e4e2a646116836aa2b471c33fbba85f5.zip
Implement movement in spatial objects
Diffstat (limited to 'include/xas')
-rw-r--r--include/xas/spatial.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/xas/spatial.h b/include/xas/spatial.h
index ed5157a..f8591df 100644
--- a/include/xas/spatial.h
+++ b/include/xas/spatial.h
@@ -47,7 +47,11 @@ struct _xas_spatial_object {
void *ctx;
int flags;
- xas_spatial_coord point;
+ xas_spatial_coord point,
+ heading;
+
+ float speed;
+
xas_spatial_object *next;
};
@@ -120,6 +124,16 @@ int xas_spatial_object_stop(xas_spatial_object *object);
void xas_spatial_object_get_point(xas_spatial_object *object,
xas_spatial_coord *point);
+float xas_spatial_object_get_speed(xas_spatial_object *object);
+
+void xas_spatial_object_set_speed(xas_spatial_object *object, float speed);
+
+void xas_spatial_object_get_heading(xas_spatial_object *object,
+ xas_spatial_coord *heading);
+
+void xas_spatial_object_set_heading(xas_spatial_object *object,
+ xas_spatial_coord heading);
+
xas_audio_stream *xas_spatial_scene_stream_new(xas_spatial_scene *scene,
size_t buffer_size);