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!
Post
Replies
Boosts
Views
Activity
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!