Post

Replies

Boosts

Views

Activity

How to impose an Impulse
Hi. Given an RC entity var physicsBody = tappedObject.entity.components[PhysicsBodyComponent.self]! as PhysicsBodyComponent how does one call func applyImpulse(_ impulse: SIMD3, at position: SIMD3, relativeTo referenceEntity: Entity?) to impose an impulse on the object? Or the real question is how does one obtain a physiceBody on the Model.Entity? Thanks!
6
0
1.3k
Sep ’23
How to impose an Impulse
Hi. Given an RC entity var physicsBody = tappedObject.entity.components[PhysicsBodyComponent.self]! as PhysicsBodyComponent how does one call func applyImpulse(_ impulse: SIMD3, at position: SIMD3, relativeTo referenceEntity: Entity?) to impose an impulse on the object? Thanks!
Replies
0
Boosts
0
Views
488
Activity
Aug ’23
How to impose an Impulse
Hi. Given an RC entity var physicsBody = tappedObject.entity.components[PhysicsBodyComponent.self]! as PhysicsBodyComponent how does one call func applyImpulse(_ impulse: SIMD3, at position: SIMD3, relativeTo referenceEntity: Entity?) to impose an impulse on the object? Or the real question is how does one obtain a physiceBody on the Model.Entity? Thanks!
Replies
6
Boosts
0
Views
1.3k
Activity
Sep ’23