Access Mesh Data in RealityKit
I’m attempting to access the geometry from a ModelEntity
loaded from a .usdz file. I’ve been able to get to the various AnyMeshBuffer
s for normals, positions, etc using the following code:
Efficiently render a large number of Entities in RealityKit
How would I render something like 10,000 cubes efficiently in RealityKit, with the ability to animate each entities parameters like translation, scale, rotation independently?
How to make an entity move in a RealityView so that collisions can be detected
I’m trying to detect when two entities collide. The following code shows a very basic set-up. How do I get the upperSphere to move? If I set its physicsBody.mode to .dynamic it moves due to gravity (and the collision is reported), but when in kinematic mode it doesn’t respond to the impulse:
RealityKit: rotating an entity relative to the world space
I am writing a very basic air plane game in RealityKit, using the transform property of the plane’s entity as its attitude.
Realitykit block objects passing through each other
How to block objects from passing through each other when manually moving objects.
User can move the object using gestures.
I want the user to not be able to move the object so that it overlaps another object.
Both objects have a collision box.