mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:13:41 +02:00
Finalize Collision Pick API naming convention for intersectingObjects
This commit is contained in:
parent
4f077080b0
commit
c5e9f02372
2 changed files with 7 additions and 7 deletions
|
@ -47,8 +47,8 @@ QVariantMap CollisionPickResult::toVariantMap() const {
|
|||
}
|
||||
|
||||
QVariantMap collisionPointPair;
|
||||
collisionPointPair["pickContactPoint"] = vec3toVariant(objectIntersection.testCollisionPoint);
|
||||
collisionPointPair["objectContactPoint"] = vec3toVariant(objectIntersection.foundCollisionPoint);
|
||||
collisionPointPair["pointOnPick"] = vec3toVariant(objectIntersection.testCollisionPoint);
|
||||
collisionPointPair["pointOnObject"] = vec3toVariant(objectIntersection.foundCollisionPoint);
|
||||
|
||||
collisionPointPairs[objectIntersection.foundID].append(collisionPointPair);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ QVariantMap CollisionPickResult::toVariantMap() const {
|
|||
const QUuid& id = intersectionKeyVal.first;
|
||||
QVariantMap& intersection = intersectionKeyVal.second;
|
||||
|
||||
intersection["contactPointPairs"] = collisionPointPairs[id];
|
||||
intersection["collisionContacts"] = collisionPointPairs[id];
|
||||
qIntersectingObjects.append(intersection);
|
||||
}
|
||||
|
||||
|
|
|
@ -161,15 +161,15 @@ public:
|
|||
* @typedef {object} IntersectingObject
|
||||
* @property {QUuid} id The ID of the object.
|
||||
* @property {number} type The type of the object, either Picks.INTERSECTED_ENTITY() or Picks.INTERSECTED_AVATAR()
|
||||
* @property {ContactPointPair[]} contactPointPairs Pairs of points representing penetration information between the pick and the object
|
||||
* @property {CollisionContact[]} collisionContacts Pairs of points representing penetration information between the pick and the object
|
||||
*/
|
||||
|
||||
/**jsdoc
|
||||
* A pair of points that represents part of an overlap between a Collision Pick and an object in the physics engine. Points which are further apart represent deeper overlap
|
||||
*
|
||||
* @typedef {object} ContactPointPair
|
||||
* @property {Vec3} pickContactPoint A point representing a penetration of the object's surface into the volume of the pick, in world space.
|
||||
* @property {Vec3} objectContactPoint A point representing a penetration of the pick's surface into the volume of the found object, in world space.
|
||||
* @typedef {object} CollisionContact
|
||||
* @property {Vec3} pointOnPick A point representing a penetration of the object's surface into the volume of the pick, in world space.
|
||||
* @property {Vec3} pointOnObject A point representing a penetration of the pick's surface into the volume of the found object, in world space.
|
||||
*/
|
||||
|
||||
/**jsdoc
|
||||
|
|
Loading…
Reference in a new issue