mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
egg-object-type-notouch
This commit is contained in:
parent
227c7c3497
commit
8a180e8d09
@ -62,9 +62,12 @@ egg-object-type-indexed <Scalar> indexed { 1 }
|
|||||||
# indicate nodes that should not be flattened out of the hierarchy
|
# indicate nodes that should not be flattened out of the hierarchy
|
||||||
# during the conversion process. DCS goes one step further and
|
# during the conversion process. DCS goes one step further and
|
||||||
# indicates that the node's transform is important and should be
|
# indicates that the node's transform is important and should be
|
||||||
# preserved (DCS stands for Dynamic Coordinate System).
|
# preserved (DCS stands for Dynamic Coordinate System). Notouch is
|
||||||
|
# even stronger, and means not to do any flattening below the node at
|
||||||
|
# all.
|
||||||
egg-object-type-model <Model> { 1 }
|
egg-object-type-model <Model> { 1 }
|
||||||
egg-object-type-dcs <DCS> { 1 }
|
egg-object-type-dcs <DCS> { 1 }
|
||||||
|
egg-object-type-notouch <DCS> { no_touch }
|
||||||
|
|
||||||
# The following define various kinds of collision geometry. These
|
# The following define various kinds of collision geometry. These
|
||||||
# mark the geometry at this level and below as invisible collision
|
# mark the geometry at this level and below as invisible collision
|
||||||
|
@ -899,6 +899,8 @@ string_dcs_type(const string &strval) {
|
|||||||
return DC_local;
|
return DC_local;
|
||||||
} else if (cmp_nocase_uh(strval, "net") == 0) {
|
} else if (cmp_nocase_uh(strval, "net") == 0) {
|
||||||
return DC_net;
|
return DC_net;
|
||||||
|
} else if (cmp_nocase_uh(strval, "no_touch") == 0) {
|
||||||
|
return DC_no_touch;
|
||||||
} else if (cmp_nocase_uh(strval, "default") == 0) {
|
} else if (cmp_nocase_uh(strval, "default") == 0) {
|
||||||
return DC_default;
|
return DC_default;
|
||||||
} else {
|
} else {
|
||||||
@ -1369,6 +1371,8 @@ ostream &operator << (ostream &out, EggGroup::DCSType t) {
|
|||||||
return out << "local";
|
return out << "local";
|
||||||
case EggGroup::DC_net:
|
case EggGroup::DC_net:
|
||||||
return out << "net";
|
return out << "net";
|
||||||
|
case EggGroup::DC_no_touch:
|
||||||
|
return out << "no_touch";
|
||||||
case EggGroup::DC_default:
|
case EggGroup::DC_default:
|
||||||
return out << "1";
|
return out << "1";
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,8 @@ PUBLISHED:
|
|||||||
DC_none = 0x00000010,
|
DC_none = 0x00000010,
|
||||||
DC_local = 0x00000020,
|
DC_local = 0x00000020,
|
||||||
DC_net = 0x00000030,
|
DC_net = 0x00000030,
|
||||||
DC_default = 0x00000040,
|
DC_no_touch = 0x00000040,
|
||||||
|
DC_default = 0x00000050,
|
||||||
};
|
};
|
||||||
enum BillboardType {
|
enum BillboardType {
|
||||||
// The bits here must correspond to those in Flags, below.
|
// The bits here must correspond to those in Flags, below.
|
||||||
|
@ -1854,6 +1854,10 @@ make_node(EggGroup *egg_group, PandaNode *parent) {
|
|||||||
DCAST(ModelNode, node)->set_preserve_transform(ModelNode::PT_net);
|
DCAST(ModelNode, node)->set_preserve_transform(ModelNode::PT_net);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EggGroup::DC_no_touch:
|
||||||
|
DCAST(ModelNode, node)->set_preserve_transform(ModelNode::PT_no_touch);
|
||||||
|
break;
|
||||||
|
|
||||||
case EggGroup::DC_local:
|
case EggGroup::DC_local:
|
||||||
case EggGroup::DC_default:
|
case EggGroup::DC_default:
|
||||||
DCAST(ModelNode, node)->set_preserve_transform(ModelNode::PT_local);
|
DCAST(ModelNode, node)->set_preserve_transform(ModelNode::PT_local);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user