About Store Forum Documentation Contact
Donations:
215$/mo



Post Reply 
How to cut with shape
Author Message
Amnedge1331 Offline
Member

Post: #1
How to cut with shape
Hello !
I need to know when a weapon Cuts() an other object, so I try with Box of actor it's ok but not precise.
So I try with Shape and it's not working, when I try to use asText of shape nothing apear, shapes are from Object create with the method Game.World.ObjCreateNear or Game.World.ObjCreate and I try with Game.Static, Game.Kinematic and Game.Item i never have Shape.

The physics of objects is convex.

Ps: before your update I used phys of Game.Item by exemple but it disappear, I found a phys into ObjectPtr base but its common to every Object that use this ObjectPtr no ? I try with this phys by Copying Shape and use transform to apply matrix but not working aswell.

Any tips ? smile
(This post was last modified: 06-06-2016 04:37 PM by Amnedge1331.)
06-04-2016 01:25 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: How to cut with shape
Hi,

If you use Convex, then the PhysPart.shape will be empty, because shape will be set only for Box, Ball, Tube, etc.
06-08-2016 10:27 AM
Find all posts by this user Quote this message in a reply
Amnedge1331 Offline
Member

Post: #3
RE: How to cut with shape
And then Actor.Shape will be empty too I imagine, but can we use Destructible without convex ?
06-08-2016 10:45 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Bronze Supporter

Post: #4
RE: How to cut with shape
is there a reason why you wouldnt create 2 physics on it ?

i use hitbox generated by points on the chr.

then simply verify thru this hitbox to see if it is being cut

it would be a dif. actor that is link to the first one, and simply ignore the first one when you do the cut and it should be fine
(This post was last modified: 06-09-2016 07:45 AM by RedcrowProd.)
06-09-2016 07:43 AM
Find all posts by this user Quote this message in a reply
Post Reply