Eugene Kozlov
|
7223708d0c
Fixed argument names in PhysicsWorld.cpp.
|
8 anos atrás |
Eugene Kozlov
|
d16abdeec1
Add dynamic triangle meshes support.
|
8 anos atrás |
Eugene Kozlov
|
de249a1963
Remove casts around nullptr.
|
8 anos atrás |
Eugene Kozlov
|
5a2bec95f1
Automatic upgrade: override, typedef to using, 0 to nullptr.
|
8 anos atrás |
Eugene Kozlov
|
9b1fc0715f
Re-factored PhysicsWorld2D::ContactInfo. Removed NodeEndContact2D::P_CONTACT and PhysicsEndContact2D::P_CONTACT event parameters. Fixed #1958. Fixed #1965.
|
8 anos atrás |
Lasse Öörni
|
13cfad66ef
RaycastVehicle code / comments formatting and AngelScript fix. RegisterRaycastVehicleLibrary function removed and class registration performed as part of Physics library initialization instead.
|
8 anos atrás |
urho3d-travis-ci
|
ee054a1507
Travis CI: bump copyright to 2017.
|
9 anos atrás |
Eugene Kozlov
|
a69df6344a
Replace new/delete with UniquePtr in simplest cases.
|
9 anos atrás |
Lasse Öörni
|
d3cc0118e8
Handle flipping of normals in collision event sending if body pointers were swapped. Do not discard contact results from the "other" manifold, rather concatenate them into the same collision event. Thanks to Enhex for highlighting the issue.
|
9 anos atrás |
Lasse Öörni
|
fe3b93080c
Further style edits. Only delete the collisionConfiguration in PhysicsWorld destructor if it was created in the constructor, and not specified by the override config.
|
9 anos atrás |
David Feltell
|
4418919180
Allow custom collision shapes + algorithms.
|
9 anos atrás |
Lasse Öörni
|
86adac5ff7
When a 2D rigidbody is parented, make sure the transforms are applied in parent->child order. Also apply the world position also for a static or sleeping rigidbody when it's parented, to make sure the simulation and rendering transforms stay in sync. Fix possible issue with null weakptr during physics 2D update. Closes #1183.
|
9 anos atrás |
urho3d-travis-ci
|
c4f6f315ff
Travis CI: bump copyright to 2016.
|
10 anos atrás |
Lasse Öörni
|
d2c47a14c4
Add hit fraction to PhysicsRaycastResult and set it for all physics cast tests. Similar to ConvexCast, set SphereCast result distance based on hit fraction. Closes #1120.
|
10 anos atrás |
Lasse Öörni
|
b110b4e51b
Tabs to spaces. Add Lua API for RaycastSingleSegmented().
|
10 anos atrás |
Enhex
|
e57cc88020
Added PhysicsWorld::RaycastSingleSegmented(). It's much more efficient for big scenes with many bodies in them.
|
10 anos atrás |
Lasse Öörni
|
310c32db9e
Adapt PhysicsWorld::GetRigidBodies() to use Nick Royer's immediate contact test code to work with static bodies properly. (https://github.com/urho3d/Urho3D/pull/1077) Exposed PhysicsWorld::GetCollidingBodies() for the previous behavior, similar to RigidBody::GetCollidingBodies().
|
10 anos atrás |
Lasse Öörni
|
d3d1538e5b
Force the RigidBody's interpolation transform only inside FixedUpdate() to prevent strange behavior with parented rigidbodies.
|
10 anos atrás |
Lasse Öörni
|
d4a5b74cc5
Also add updateEnabled to PhysicsWorld. Make Scene, PhysicsWorld and PhysicsWorld2D behave in the same way: when auto update is disabled, manual stepping can still be performed. Rewrite some comments for clarity.
|
10 anos atrás |
Ivan K
|
ad2eb74d83
LOGERROR -> URHO3D_LOGERROR
|
10 anos atrás |
Ivan K
|
3a7e7f058e
LOGWARNING -> URHO3D_LOGWARNING
|
10 anos atrás |
Ivan K
|
db15f0358e
PROFILE -> URHO3D_PROFILE
|
10 anos atrás |
Ivan K
|
3959d569fa
MIXED_ACCESSOR_ATTRIBUTE -> URHO3D_MIXED_ACCESSOR_ATTRIBUTE
|
10 anos atrás |
Ivan K
|
212f419026
ACCESSOR_ATTRIBUTE -> URHO3D_ACCESSOR_ATTRIBUTE
|
10 anos atrás |
Ivan K
|
431e29d2cd
ATTRIBUTE -> URHO3D_ATTRIBUTE
|
10 anos atrás |
Ivan K
|
4bcbae61fe
HANDLER -> URHO3D_HANDLER
|
10 anos atrás |
Lasse Öörni
|
e76dd6e4b9
Return cast travel distance using m_closestHitFraction in ConvexCast() result. If desired, the distance to hit position from start position (earlier behavior) can be calculated manually. Closes #906.
|
10 anos atrás |
Lasse Öörni
|
04bbaf588a
Make sure a null pointer is not returned from RigidBody::GetCollidingBodies(), if a colliding body was just destroyed.
|
10 anos atrás |
Lasse Öörni
|
e0ce3e4ad0
Take into account CollisionShape's offset position & rotation in ConvexCast. Closes #856.
|
10 anos atrás |
Lasse Öörni
|
adc04560ce
Added warning for infinite PhysicsWorld raycast.
|
10 anos atrás |